Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "GetCurrentThreadId" in [All]

user32

.

    uint 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

.
Summary
.

static extern uint GetCurrentThreadId();

.

Public Shared Function GetCurrentThreadId() As UInteger

.

  System.AppDomain.GetCurrentThreadId() (This is deprecated in .NET 2.0)

.
Documentation
[GetCurrentThreadId] on MSDN
.

     threadId = (uint)AppDomain.GetCurrentThreadId();

dbghelp

.

static extern uint GetCurrentThreadId();

.

    info.ThreadId = GetCurrentThreadId();


 
Access PInvoke.net directly from VS: