News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

processid from created process

Started by ragdog, July 31, 2007, 06:17:15 PM

Previous topic - Next topic

ragdog

hi

I have times one ask as
start a program with CreateProcess the processid from the started program to query can??

greets

ragdog



Tedd

The processId is available in the PROCESS_INFORMATION structure after CreateProcess returns.
Or are you asking what is it (processId) used for/what can you do with it? -- I don't know :lol If a function requires a process-id, then you can give it that one, but most seem to use the handle. I think it's mostly just a way to 'name' the process uniquely on the machine (can start the same exe twice, but they are different processes.)
No snowflake in an avalanche feels responsible.

Vortex

Ragdog,

Maybe, you would like to look also at GetCurrentProcessId :

QuoteThe GetCurrentProcessId function returns the process identifier of the calling process.

ragdog

thanks for the information it works  :U

greets

ragdog