Tagged Questions
3
votes
1answer
16 views
How to create a new process with command line arguments and give the PID to the parent process?
I'm trying to create a cross platform function for creating a new process using both Unix and Windows.
Using fork() & exec() in Unix is easy enough. Though I'm having trouble figuring it out in ...
1
vote
1answer
88 views
Newly created suspended process's EIP is failing only on Windows XP - EIP under kernal32.dll image?
My program works flawlessly on Windows Vista Ultimate and Windows 7, however it fails on Windows XP.
First, my application creates a process of a system file, it calls ...
0
votes
1answer
59 views
VirtualProtectEx function failing - error 487, only on Windows XP
Allow me to clarify, this code works 100% on Windows Vista and Windows 7, however, the function VirtualProtectEx fails on Windows XP with a GetLastError() code of 487 - ERROR_INVALID_ADDRESS.
Here ...
0
votes
0answers
31 views
Some way to know the instant a process launched [duplicate]
I just want to know every time a process is launched on win32. Like recieve a message. Instead of a timer thats like every x secs to check process list.
0
votes
1answer
21 views
Just want an executable to enumarate processes and enumarate loaded .dlls
I want to make like a function with an argument stdvector::<std::string> of process names and std::vector<std::string> of .dll's to find in them and feed it into a function and get like ...
1
vote
1answer
58 views
Get running processes using JNA
I am trying to obtain a list of all currently running processes on a windows machine.
I am trying it with winapi calls via JNA to
EnumProcesses -> OpenProcess -> GetModuleBaseNameW -> CloseHandle
...
0
votes
1answer
70 views
How (best) to post WM_QUIT to a running process?
Goal: Shut down a running 32 bit GUI process under windows
I have access to the executable pathname.
There are potentially more than one copy of this software running, but only one started from a ...
0
votes
0answers
50 views
How can I know that threads of my application are working or hovered?
I need to write application that collect information about processes in windows. I can read number of threads and thread's id, memory that used by process. But i dont know how i can check working or ...
0
votes
1answer
48 views
Detecting if an Internet Explorer process is running Flash Player
Ok, here is a little 1 million dollars question. I'm developing an application that checks if any of your browsers is currently running a Flash application. Here is my core native implementation:
// ...
-3
votes
1answer
52 views
time of 'fire'ing' (not creating) proces in winapi
I need to obtain an exact time of fire'ing process
(not the time of the creation of the proces which
as I know is some time later) I need to obtain
the time of 'running' program yet before its image
...
0
votes
0answers
78 views
AttachConsole(…) alternative for Windows8
AttachConsole(ATTACH_PARENT_PROCESS) returns TRUE and GetLastError() returns ERROR_NOT_SUPPORTED when running console (ie parent process is cmd.exe) application on Windows8. Is there any alternative ...
0
votes
1answer
89 views
implementing pipe in C for shell with winapi
I m implementing a pipe in C for a shell I am writing, the pipe should be able to support stuff like ls | grep | grep | grep ( in other words, it should be recursive).
Shell is running on cygwin ...
2
votes
3answers
68 views
Windows API STARTUPINFO destroyed?
After creating a process and waiting for it to finish, does it's STARTUPINFO still available or is it destroyed ?
STARTUPINFO si;
bRes = CreateProcess(NULL, command, NULL, NULL, TRUE, 0, NULL, NULL, ...
0
votes
2answers
187 views
how do you find what window(Handle) takes process ownership? And get the handle for that..?
The EnumWindows and EnumChildWindows grab many many window handles. I just want the top most for each running process. A lot of them return 0 from within Process.GetProcesses(), what's the deal?
I've ...
0
votes
0answers
68 views
Deadlock when adding COM GUI component to HWND of other process (Firefox, Plugin, IExplorerBrowser)
I am trying to embed an IExplorerBrowser (the main GUI of Windows Explorer) into a Firefox XUL or HTML page.
The instance of IExploerBrowser is created using js-ctypes in the Firefox-process ( with ...