Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.5 KiB

  1. #include "tsvs.h"
  2. // Global Variables:
  3. //////////////////////////////////////////////////////////////////////////////
  4. HINSTANCE hInst; // current instance
  5. TCHAR szTitle[MAX_LOADSTRING]; // The title bar text
  6. TCHAR szWindowClass[MAX_LOADSTRING]; // The title bar text
  7. TCHAR szAppName[] = TEXT("WinSta");
  8. HWND hWnd;
  9. HWND g_hListView;
  10. int g_ColumnOneIndex;
  11. int g_ColumnTwoIndex;
  12. int g_ColumnThreeIndex;
  13. int g_ColumnFourIndex;
  14. TCHAR * pszColumn = TEXT("User");
  15. TCHAR * pszColumn2 = TEXT("Session");
  16. TCHAR * pszColumn3 = TEXT("Connected From");
  17. TCHAR * pszColumn4 = TEXT("Status");
  18. TCHAR szMcNames[MAX_STATIONS][MAX_LEN] = {0};
  19. TCHAR szMcAddress[MAX_STATIONS][MAX_LEN] = {0};
  20. TCHAR szMcID[MAX_STATIONS][MAX_LEN] = {0};
  21. TCHAR szBuild [MAX_STATIONS][MAX_LEN] = {0};
  22. TCHAR tmp[sizeof(TCHAR) * 50];
  23. TCHAR buf[sizeof(TCHAR) * 50];
  24. TCHAR *DayOfWeek[] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
  25. TCHAR *KeyName[] = {"left", "top", "right", "bottom"};
  26. const TCHAR szWinStaKey[] =
  27. {"Software\\Microsoft\\Windows NT\\CurrentVersion\\WinSta"};
  28. SYSTEMTIME lpSystemTime;
  29. HANDLE m_hThread;
  30. FILE *stream1;
  31. //////////////////////////////////////////////////////////////////////////////
  32. WTS_SESSION_INFO *ppSessionInfo;
  33. TCHAR *ppBuffer;
  34. DWORD pBytesReturned;
  35. DWORD pCount;
  36. //////////////////////////////////////////////////////////////////////////////