DWORD WINAPI WTSGetActiveConsoleSessionId(void) { InitOnceExecuteOnce(&wtsapiInitOnce, InitializeWtsApiStubs, NULL, NULL); if (!g_WtsApi || !g_WtsApi->pGetActiveConsoleSessionId) return 0xFFFFFFFF; return g_WtsApi->pGetActiveConsoleSessionId(); }
DWORD WINAPI WTSGetActiveConsoleSessionId(void) { if (!g_Initialized) InitializeWtsApiStubs(); if (!g_WtsApi || !g_WtsApi->pGetActiveConsoleSessionId) return 0xFFFFFFFF; return g_WtsApi->pGetActiveConsoleSessionId(); }