|
ProcessHelperProcessIdToSessionId Method |
Namespace: Xcalibur.NativeMethods.V2.ProcessesAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax [DllImportAttribute("kernel32.dll")]
public static bool ProcessIdToSessionId(
uint processId,
out uint sessionId
)
<DllImportAttribute("kernel32.dll">]
Public Shared Function ProcessIdToSessionId (
processId As UInteger,
<OutAttribute> ByRef sessionId As UInteger
) As Boolean
public:
[DllImportAttribute(L"kernel32.dll")]
static bool ProcessIdToSessionId(
unsigned int processId,
[OutAttribute] unsigned int% sessionId
)
[<DllImportAttribute("kernel32.dll")>]
static member ProcessIdToSessionId :
processId : uint32 *
sessionId : uint32 byref -> bool
Parameters
- processId UInt32
- Specifies a process identifier. Use the
function to retrieve the process identifier for the
current process.
- sessionId UInt32
- Pointer to a variable that receives the identifier of the Remote
Desktop Services session under which the specified process is running. To retrieve the
identifier of the session currently attached to the console, use the
function.
Return Value
BooleanIf the function fails, the return value is zero. To get extended error
information, call .
See Also