win32ts.WTSGetActiveConsoleSessionId

int = WTSGetActiveConsoleSessionId()

Returns the id of the console session

Comments

Returns 0xffffffff if no active console session exists