Skip to content
⌘ NSIS Forum Archive

How to know the parameters window of the process ?

7 posts

stass#

How to know the parameters window of the process ?

I know the name and PID of the process. How to know the parameters window (handle, etc.) of the process ?
Anders#
I don't really understand what you are asking, do you want to know the command line parameters the process was started with or something to do with a window?
stass#
Anders
Known PID process. The process creates a window. Need to know the handle of the window.
It seems to have this function: EnumThreadWindows() and EnumThreadWndProc
Anders#
IIRC the system plugin has a example that uses EnumWindows, in that callback function call GetWindowThreadProcessId and compare the PID
jpderuiter#
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
stass#
You need all the way around! Processes have created a lot of windows - both visible and not visible. I need to know which window to create a specific process. And then to work with the window.
jpderuiter#
You will have to loop through all windows (with EnumWindows), and compare the PID to check if it's your window.
There is no direct way to get it.