@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The GetCurrentProcessId API !!!!C# Signature: [DllImport("kernel32.dll")] static extern uint GetCurrentProcessId(); !!!!VB Signature: Declare Function GetCurrentProcessId Lib "kernel32" () As Integer !!!!User-Defined Types: None. !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: class FindMyself { [DllImport("kernel32.dll")] public static extern uint GetCurrentProcessId(); } class WhoAmI { private void LookUp() { uint MyID = FindMyself.GetCurrentProcessId(); } } !!!!Alternative Managed API: Process.GetCurrentProcess().Id Documentation: GetCurrentProcessId@msdn on MSDN
Edit kernel32.GetCurre...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.