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.

123 lines
3.0 KiB

  1. //*************************************************************
  2. // File name: PROFILE.H
  3. //
  4. // Description: Header file for profile control panel applet
  5. //
  6. //
  7. // Microsoft Confidential
  8. // Copyright (c) Microsoft Corporation 1992-1994
  9. // All rights reserved
  10. //
  11. //*************************************************************
  12. //
  13. // Misc. constants
  14. //
  15. #define NUM_APPLETS 1
  16. #define MAX_DOMAIN_NAME 128
  17. #define MAX_USER_NAME 128
  18. #define MAX_COMPUTER_NAME 128
  19. #define MAX_TEMP_BUFFER (128 + MAX_DOMAIN_NAME + MAX_USER_NAME)
  20. #define MAX_NUM_COMPUTERS 256
  21. #define PROFILE_NAME_LEN 30
  22. #define MAX_ERROR_MSG 350
  23. #define NAMES_HELP_CONTEXT 1
  24. #define UNKNOWN_LEN 30
  25. #define LOCAL_PROFILE_TYPE TEXT('0')
  26. #define PERSONAL_PROFILE_TYPE TEXT('1')
  27. #define MANDITORY_PROFILE_TYPE TEXT('2')
  28. //
  29. // Icon ID
  30. //
  31. #define ID_ICON 1
  32. //
  33. // String table constants
  34. //
  35. #define IDS_NAME 1
  36. #define IDS_INFO 2
  37. #define IDS_UNABLETOSAVE 3
  38. #define IDS_BASEERRORMSG 4
  39. #define IDS_NAMEINDONTLIST 5
  40. #define IDS_NONAMEANDDONOTSAVE 6
  41. #define IDS_LOGOFFNOTICE 7
  42. #define IDS_DUPLICATENAME 8
  43. #define IDS_ADDNAME 9
  44. #define IDS_UNKNOWN 10
  45. #define IDS_FORMAT 11
  46. //
  47. // Dialog box constants
  48. //
  49. #define IDD_PROFILE 100
  50. #define IDD_USERNAME 101
  51. #define IDD_PATH 102
  52. #define IDD_DONTSAVECHANGE 103
  53. #define IDD_SAVELIST 104
  54. #define IDD_DEFAULTSAVE 105
  55. #define IDD_DEFAULTDONTSAVE 106
  56. #define IDD_HELP 107
  57. #define IDD_SAVECHANGE 108
  58. #define IDD_DONTSAVELIST 109
  59. #define IDD_COMPUTERNAME 110
  60. #define IDD_COMPUTERNAMES 200
  61. #define IDD_DELETE 201
  62. #define IDD_CLEARALL 202
  63. #define IDD_NAMESHELP 203
  64. #define IDD_NAMESLIST 204
  65. #define IDD_NEWNAME 205
  66. #define IDD_ADD 206
  67. //
  68. // Global Variables
  69. //
  70. extern HINSTANCE hInstance;
  71. extern LPTSTR glpList;
  72. extern TCHAR szProfileRegInfo[];
  73. extern TCHAR szProfileType[];
  74. extern UINT uiShellHelp;
  75. extern TCHAR szShellHelp[];
  76. extern TCHAR szHelpFileName[];
  77. //
  78. // Function prototypes
  79. //
  80. void RunApplet(HWND);
  81. BOOL InitializeDialog (HWND);
  82. void ParseAndAddComputerNames(HWND, WORD, LPTSTR);
  83. LPTSTR CreateList (HWND, WORD, LPTSTR, LPBOOL);
  84. BOOL SaveSettings (HWND);
  85. BOOL CompareLists (HWND, WORD, WORD);
  86. BOOL CheckProfileType (void);
  87. void SetDefButton(HWND, INT);
  88. INT_PTR CALLBACK ProfileDlgProc(HWND, UINT, WPARAM, LPARAM);
  89. INT_PTR CALLBACK NamesDlgProc(HWND, UINT, WPARAM, LPARAM);
  90. //
  91. // Macros
  92. //
  93. #if DBG
  94. #define KdPrint(_x_) \
  95. OutputDebugStringA ("PROFILE: "); \
  96. OutputDebugStringA _x_; \
  97. OutputDebugStringA ("\r\n");
  98. #else
  99. #define KdPrint(_x_)
  100. #endif