Desktop Functions: Smart Device Functions:
|
GetCurrentThread (kernel32)
C# Signature:
[DllImport("kernel32.dll")] User-Defined Types:None. Notes:This does not return a real handle, but a fixed value which is interpreted as the current, calling thread by any function which requires a thread handle. To get the real handle, you need to call GetCurrentThreadId, then OpenThread with the returned value along with the necessary permissions and what-not. Then close the handle when you're done with it. Tips & Tricks:Please add some! Sample Code:IntPtr currThread = GetCurrentThread(); Alternative Managed API:Do you know one? Please contribute it! Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|