#ifndef _WINSTA_H
// rev
NTSYSAPI
BOOLEAN
NTAPI
LogonIdFromWinStationNameW(
_In_opt_ HANDLE ServerHandle,
_In_ PCWSTR pWinStationName,
_Out_ PULONG SessionId
);
View code on GitHub
This function is a wrapper over an RPC method documented in the [MS-TSTS] specification.