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.

85 lines
2.7 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. ** 08-04-99 a-skuzin struct SHAREDWIZDATA added **
  11. **-----------------------------------------------*/
  12. #include <windows.h>
  13. #include <windowsx.h>
  14. #include <commctrl.h>
  15. #include <TCHAR.h>
  16. #pragma once
  17. extern TCHAR szKeyPath[];
  18. extern TCHAR *KeyName[];
  19. extern TCHAR szConstraintsKeyPath[];
  20. extern HINSTANCE g_hInst;
  21. #define MAX_LEN 1024
  22. #define ASYNCHRONOUS 0
  23. #define DLLNAME 1
  24. #define IMPERSONATE 2
  25. #define STARTUP 3
  26. #define CONSTRAINTS 4
  27. #define USE_MSG 5
  28. #define MSG_TITLE 6
  29. #define MSG 7
  30. #define VERSIONS 8
  31. #define NOWELLCOME 9
  32. LONG SetRegKey (HKEY root, TCHAR *szKeyPath,
  33. TCHAR *szKeyName, BYTE nKeyValue);
  34. LONG DeleteRegKey (HKEY root, TCHAR *szKeyPath, TCHAR *szKeyName);
  35. BOOL CheckForRegKey (HKEY root, TCHAR *szKeyPath, TCHAR *szKeyName);
  36. int GetRegKeyValue (HKEY root, TCHAR *szKeyPath, TCHAR *szKeyName);
  37. TCHAR * GetRegString (HKEY root, TCHAR *szKeyPath, TCHAR *szKeyName);
  38. LONG SetRegKeyString (HKEY root, TCHAR *szRegString,
  39. TCHAR *szKeyPath, TCHAR *szKeyName);
  40. void GetRegMultiString(HKEY root, TCHAR *szKeyPath, TCHAR *szKeyName, TCHAR **ppBuffer);
  41. //////////////////////////////////////////////////////////////////////////////
  42. //struct SHAREDWIZDATA
  43. struct SHAREDWIZDATA
  44. {
  45. HFONT hTitleFont;
  46. BOOL bNoWellcome;
  47. BOOL bCheckingEnabled;
  48. TCHAR* pszConstraints;
  49. BOOL bMessageEnabled;
  50. TCHAR* pszMessageTitle;
  51. TCHAR* pszMessageText;
  52. //
  53. SHAREDWIZDATA():hTitleFont(NULL),
  54. bNoWellcome(FALSE),
  55. bCheckingEnabled(FALSE),
  56. pszConstraints(NULL),
  57. bMessageEnabled(FALSE),
  58. pszMessageTitle(NULL),
  59. pszMessageText(NULL)
  60. {
  61. }
  62. //
  63. ~SHAREDWIZDATA()
  64. {
  65. if(hTitleFont)
  66. DeleteObject(hTitleFont);
  67. if(pszConstraints)
  68. delete pszConstraints;
  69. if(pszMessageTitle)
  70. delete pszMessageTitle;
  71. if(pszMessageText)
  72. delete pszMessageText;
  73. }
  74. };
  75. typedef SHAREDWIZDATA* LPSHAREDWIZDATA;
  76. //////////////////////////////////////////////////////////////////////////////