Questions tagged [windows-process]

50 questions
14
votes
3 answers

Maximize another process' Window in .NET

I have a handle on another process' main window in .net (proc.MainWindowHandle). How do I maximize the window inside of .net?
dko
  • 874
  • 2
  • 7
  • 18
12
votes
2 answers

Get command line string of 64-bit process from 32-bit process

The code below works for me well to get command line string of 32-bit process from a 32-bit app, 64-bit process from a 64-bit app and 32-bit process from 64-bit app. This will break if I try to use for 64-bit process from 32-bit app. The reason…
Kartlee
  • 1,129
  • 2
  • 19
  • 33
5
votes
0 answers

C# git command line process

Our organization utilizes VisualStudioOnline, GitHub and BitBucket for various repositories. I've been trying to figure out a way in c# to automate the pull of changes from various git repositories on a regular schedule. I've tried starting a…
peinearydevelopment
  • 11,042
  • 5
  • 48
  • 76
5
votes
2 answers

VB6 Application Stops Responding

I Have a program written in VB6 that reads a long text file and performs a very long operation. I have also implemented progress bar, but my problem is that, after while my program says "Not responding" and it starts responding again when the task…
Vinay K
  • 463
  • 6
  • 18
4
votes
3 answers

How to pass a message from windows service to windows desktop application using c#?

I want to pass a message from windows service to an windows desktop application that is already running. I have implemented a timer on windows service. after an interval the service send a message to the windows application. The service or sender…
Aminul Islam
  • 104
  • 2
  • 9
3
votes
0 answers

How can I use WM_NCHITTEST to indicate a mouse being outside the application area?

Is there any way I can handle the WM_NCHITTEST message in the window procedure such that the mouse will "fall through" to the next application below? Right now I draw a custom shadow decoration in a transparent area of my application window. When I…
vbyzjnlehi
  • 307
  • 2
  • 15
3
votes
1 answer

Best way to profile long-term CPU usage of Windows process

I have an application of my own that increases the CPU usage of a process on Windows (in this case: audiodg.exe, which handles audio in 'some' way). I want to measure the overall CPU performance of this process over a minute or so. It is possible to…
Yellow
  • 3,955
  • 6
  • 45
  • 74
3
votes
1 answer

How to kill windows processes whose resource consumption doesn't change using python?

I have a python script that tests if any firefox processes are running on my windows machine and then kills them: import os, subprocess running_processes = subprocess.check_output('tasklist', shell = True) if "firefox.exe" in running_processes: …
sudonym
  • 3,788
  • 4
  • 36
  • 61
3
votes
2 answers

Filtering/Parsing list produced from EnumWindows in C++

I am using the following code to get a list of windows running on my machine #include #include using namespace std; BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam) { TCHAR buffer[512]; SendMessage(hwnd,…
JackBoy
  • 61
  • 4
3
votes
1 answer

How is SizeOfImage in the PE optional header computed?

How is SizeOfImage in the PE optional header computed? Trying to learn the PE format, I've come across the SizeOfImage field in the optional header. To quote the documentation: The size (in bytes) of the image, including all headers, as the…
Shuzheng
  • 11,288
  • 20
  • 88
  • 186
3
votes
2 answers

What does « program is not responding » mean?

What does this message means, is there an API to « respond » to Microsoft Windows status queries ? I'm looking for a technical answer. Thanks :)
Nope
  • 897
  • 1
  • 8
  • 15
3
votes
1 answer

Working with _RTL_USER_PROCESS_PARAMETERS

I am working with PEB. I have managed to get inside _RTL_USER_PROCESS_PARAMETERS. My Aim-> To know the memory address of argc and argv .( and if possible their values too ) only by using a binary file (.exe file) My current approach-> To access…
2
votes
1 answer

Change Application.Calculation in different Excel process

In a VBA subroutine I write values to another "Target" workbook that runs in a separate Excel process, like this: Set xlWB = GetObject(STR_TARGET_WORKBOOK_FILENAME) xlWB.Worksheets(STR_TARGET_SHEET).Range("B1").value = Now() I want to suspend…
feetwet
  • 3,248
  • 7
  • 46
  • 84
2
votes
0 answers

What's "Replace a process level token" for anyway?

Let me start by saying I know next to zero about Windows. My understanding is that processes in Windows get their privileges from a process-level token, which normally would identify the user started the process, but may differ as is common for…
Aayla Secura
  • 271
  • 4
  • 12
2
votes
1 answer

Process.GetProcesses and IsWow64Process does not return all the running processes

Im using this simple code to list all the running processes and their architecture (32bit or 64bit) on console, And it works nearly accurate but the number of processes in result is not even half of what i see in WindowsTaskManager or ProcessHacker.…
0_o
  • 570
  • 6
  • 18
1
2 3 4