PROCESS_INFORMATION

typedef struct _PROCESS_INFORMATION { /* pi */

HANDLE hProcess;

HANDLE hThread;

DWORD dwProcessId;

DWORD dwThreadId;

} PROCESS_INFORMATION;

Members

hProcess

Returns a handle to the newly created process. Through the handle, all operations on process objects are allowed.

hThread

Returns a handle to the newly created thread. Through the handle, all operations on thread objects are allowed.

dwProcessId

Returns a global process id that may be used to identify a process. The value is valid from the time the process is created until the time the process is terminated.

dwThreadId

Returns a global thread id that may be used to identify a thread. The value is valid from the time the thread is created until the time the thread is terminated.

See Also

CreateProcess