| Author |
Message |
ZenLulz
Joined: 01 Jan 2013 Posts: 2
|
Posted: Tue Jan 08, 2013 2:17 pm Post subject: GetThreadId P/Invoke |
|
|
Dear community,
Another missed function :
| Code: |
/// <summary>
/// Retrieves the thread identifier of the specified thread.
/// </summary>
/// <param name="hThread">
/// A handle to the thread. The handle must have the THREAD_QUERY_INFORMATION or THREAD_QUERY_LIMITED_INFORMATION access right.
/// For more information about access rights, see Thread Security and Access Rights.
/// </param>
/// <returns>
/// If the function succeeds, the return value is a thread id to the specified handle.
/// If the function fails, the return value is zero. To get extended error information, call GetLastError.
/// </returns>
[DllImport("kernel32.dll", SetLastError = true)]
public static extern int GetThreadId(IntPtr hThread);
|
It can be added to the wiki. _________________ 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