| Author |
Message |
ZenLulz
Joined: 01 Jan 2013 Posts: 2
|
Posted: Tue Jan 01, 2013 8:51 pm Post subject: GetProcessId P/Invoke |
|
|
Dear community,
The function DWORD WINAPI GetProcessId(HANDLE); is missing in your wiki.
This is the corresponding P/Invoke function :
| Code: |
/// <summary>
/// Retrieves the process identifier of the specified process.
/// </summary>
/// <param name="hProcess">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.</param>
/// <returns>If the function succeeds, the return value is an open handle to the specified process. If the function fails, the return value is NULL. To get extended error information, call <see cref="Marshal.GetLastWin32Error"/>.</returns>
[DllImport("kernel32.dll", SetLastError = true)]
public static extern int GetProcessId(IntPtr hProcess);
|
Feel free to add it.  _________________ ZenLulz |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group