SystemInformation.TerminalServerSession
#include <windows.h> #pragma comment(lib, "user32.lib") BOOL IsRemoteSession(void) { return GetSystemMetrics( SM_REMOTESESSION ); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)