Red Gate forums :: View topic - GetThreadId P/Invoke
Return to RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
PInvoke.Net forum

GetThreadId P/Invoke

Search in PInvoke.Net forum
Post new topic   Reply to topic
Jump to:  
Author Message

Joined: 01 Jan 2013
Posts: 2
Location: Switzerland

PostPosted: Tue Jan 08, 2013 2:17 pm    Post subject: GetThreadId P/Invoke Reply with quote

Dear community,

Another missed function :


/// <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.
Owner of Binarysharp.

Developer of
MemorySharp - a C# based memory editing library targeting Windows applications
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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