相关API:DWORD GetCurrentProcessId(void);
MSDN描述:This function returns the process identifier of the calling process. 返回调用进程的进程ID。
相关API:HANDLE WINAPI OpenProcess( __in DWORD dwDesiredAccess, __in BOOLbInheritHandle, __in DWORDdwProcessId);
MSDN描述:Opens an existing local process object. 根据进程ID返回进程具句柄。
相关API:HANDLE WINAPI GetCurrentProcess(void);
MSDN描述:Retrieves a pseudo handle for the current process. 取得当前进程的伪句柄。