EN
Данное содержимое не доступно на вашем языке, используйте версию на английском языке.

GetProcessId function

Retrieves the process identifier of the specified process.

Syntax


DWORD WINAPI GetProcessId(
  _In_  HANDLE Process
);

Parameters

Process [in]

A handle to the process. The handle must have the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right. For more information, see Process Security and Access Rights.

Windows Server 2003 and Windows XP:  The handle must have the PROCESS_QUERY_INFORMATION access right.

Remarks

Until a process terminates, its process identifier uniquely identifies it on the system. For more information about access rights, see Process Security and Access Rights.

Requirements

Minimum supported client

Windows Vista, Windows XP with SP1 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

WinBase.h on Windows XP, Windows Server 2003, Windows Vista, Windows 7, Windows Server 2008, and Windows Server 2008 R2 (include Windows.h);
Processthreadsapi.h on Windows 8 and Windows Server 2012

Library

Kernel32.lib

DLL

Kernel32.dll

See also

GetCurrentProcessId
GetProcessIdOfThread
GetThreadId
Processes

 

 

Добавления сообщества

ДОБАВИТЬ
Показ:
© 2014 Microsoft