The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ragdog on July 31, 2007, 06:17:15 PM

Title: processid from created process
Post by: ragdog on July 31, 2007, 06:17:15 PM
hi

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

greets

ragdog


Title: Re: processid from created process
Post by: Tedd on August 01, 2007, 01:56:16 PM
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.)
Title: Re: processid from created process
Post by: Vortex on August 01, 2007, 05:10:25 PM
Ragdog,

Maybe, you would like to look also at GetCurrentProcessId :

QuoteThe GetCurrentProcessId function returns the process identifier of the calling process.
Title: Re: processid from created process
Post by: ragdog on August 01, 2007, 07:17:07 PM
thanks for the information it works  :U

greets

ragdog