Smart Device Functions:
Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than kernel32, prefix the name with the module name and a period.
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!
IntPtr currThread = GetCurrentThread();
Alternative Managed API:
idThread = Process.GetCurrentProcess().Threads.Id;
The GetCurrentThread API
2/1/2010 5:27:18 AM - -18.104.22.168
The GetCurrentThreadId API
3/16/2007 1:54:30 PM - mark at [nospam]epitman.com-22.214.171.124
The OpenThread API
10/9/2011 5:55:11 PM - Jaykul-126.96.36.199
An IntPtr is a pointer to a memory location (unmanaged) that adapts to the platform it is running on (64-bit, etc.) UNLIKE a standard int/Integer. You should always use this type for unmanaged calls that require it, even though an int will appear to work on your development machine.
1/13/2008 11:00:13 AM - tsahi-188.8.131.52
Please edit this page!
Do you have...