Red Gate forums :: View topic - GetProcessId P/Invoke
Return to www.red-gate.com RSS Feed Available

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

GetProcessId P/Invoke

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



Joined: 01 Jan 2013
Posts: 2
Location: Switzerland

PostPosted: Tue Jan 01, 2013 8:51 pm    Post subject: GetProcessId P/Invoke Reply with quote

Dear community,

The function DWORD WINAPI GetProcessId(HANDLE); is missing in your wiki.

This is the corresponding P/Invoke function :

Code:

        /// <summary>
        /// Retrieves the process identifier of the specified process.
        /// </summary>
        /// <param name="hProcess">A handle to the process. The handle must have the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right. For more information, see Process Security and Access Rights.</param>
        /// <returns>If the function succeeds, the return value is an open handle to the specified process. If the function fails, the return value is NULL. To get extended error information, call <see cref="Marshal.GetLastWin32Error"/>.</returns>
        [DllImport("kernel32.dll", SetLastError = true)]
        public static extern int GetProcessId(IntPtr hProcess);


Feel free to add it. Smile
_________________
ZenLulz
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