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.

62 lines
2.1 KiB

  1. /*-----------------------------------------------**
  2. ** Copyright (c) 1999 Microsoft Corporation **
  3. ** All Rights reserved **
  4. ** **
  5. ** tsvsm.h **
  6. ** **
  7. ** **
  8. ** **
  9. ** 06-25-99 a-clindh Created **
  10. **-----------------------------------------------*/
  11. #include <stdio.h>
  12. #include <stdlib.h>
  13. #include <windows.h>
  14. #include <TCHAR.h>
  15. #include <Wtsapi32.h>
  16. #include <winuser.h>
  17. #include <winsta.h>
  18. #include <winwlx.h>
  19. #include <utilsub.h>
  20. #include "resource.h"
  21. extern TCHAR szWinStaKey[];
  22. extern TCHAR *KeyName[];
  23. #define CONSTRAINTS 0
  24. #define RUNKEY 1
  25. #define USE_MSG 2
  26. #define MSG_TITLE 3
  27. #define MSG 4
  28. #define MAX_LEN 1024
  29. void SetRegKey (HKEY root, TCHAR *szKeyPath,
  30. TCHAR *szKeyName, BYTE nKeyValue);
  31. void DeleteRegKey (HKEY root, TCHAR *szKeyPath, TCHAR *szKeyName);
  32. BOOL CheckForRegKey (HKEY root, TCHAR *szKeyPath, TCHAR *szKeyName);
  33. int GetRegKeyValue (HKEY root, TCHAR *szKeyPath, TCHAR *szKeyName);
  34. TCHAR * GetRegString (HKEY root, TCHAR *szKeyPath, TCHAR *szKeyName);
  35. BOOL SetRegKeyString (HKEY root, TCHAR *szRegString,
  36. TCHAR *szKeyPath, TCHAR *szKeyName);
  37. void KickMeOff(ULONG pNumber);
  38. BOOL ParseNumberFromString(UINT i, TCHAR *szConstraints,
  39. ULONG pNumber);
  40. BOOL ParseRangeFromString(UINT i, TCHAR *szConstraints,
  41. ULONG pNumber);
  42. BOOL GreaterThan(UINT i, TCHAR *szConstraints,
  43. ULONG pNumber);
  44. BOOL LessThan(UINT i, TCHAR *szConstraints,
  45. ULONG pNumber);
  46. VOID TsVerEventStartup (PWLX_NOTIFICATION_INFO pInfo);
  47. int CheckClientVersion(void);
  48. int CDECL MB(TCHAR *szCaption, TCHAR *szFormat, ...);
  49. //////////////////////////////////////////////////////////////////////////////