Desktop Functions: Smart Device Functions:
|
Search Results for "GetCurrentThreadId" in [All]user32uint appThread = GetCurrentThreadId(); AppDomain.GetCurrentThreadId is marked as deprecated in favour of Thread.ManagedThreadId but this will not to work with unmanaged API. You can use the GetCurrentThreadId API as well:
SetWindowsHookEx(HookType.WH_KEYBOARD, this.myCallbackDelegate, IntPtr.Zero, AppDomain.GetCurrentThreadId());
SetWindowsHookEx(HookType.WH_KEYBOARD, Me.myCallbackDelegate, IntPtr.Zero, AppDomain.GetCurrentThreadId()) kernel32
static extern uint GetCurrentThreadId();
Public Shared Function GetCurrentThreadId() As UInteger
System.AppDomain.GetCurrentThreadId() (This is deprecated in .NET 2.0)
threadId = (uint)AppDomain.GetCurrentThreadId(); dbghelp
static extern uint GetCurrentThreadId();
info.ThreadId = GetCurrentThreadId(); |