[DllImport("kernel32.dll", SetLastError=true)]
static extern int ProcessIdToSessionId(uint dwProcessId, out uint pSessionId);
Declare Function ProcessIdToSessionId Lib "kernel32.dll" _
(ByVal dwProcessId As Int32, ByRef pSessionId As Int32) As Int32
None.
As always, only do SetLastError=true if you actually intend to call GetLastError.
Please add some!
Please add some!
Do you know one? Please contribute it!