ProcessIdToSessionId (kernel32)
Last changed: -194.238.48.90

.
Summary

C# Signature:

[DllImport("kernel32.dll", SetLastError=true)]
static extern int ProcessIdToSessionId(uint dwProcessId, out uint pSessionId);

VB Signature:

  Declare Function ProcessIdToSessionId Lib "kernel32.dll" _
    (ByVal dwProcessId As Int32, ByRef pSessionId As Int32) As Int32

User-Defined Types:

None.

Notes:

As always, only do SetLastError=true if you actually intend to call GetLastError.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation