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.

303 lines
11 KiB

  1. // define as many NOxxxx's as possible to keep windows.h's memory footprint
  2. // small. rc is a 16-bit app, and runs out of heap space processing windows.h
  3. // since it pulls in so much stuff.
  4. #define NOGDI
  5. #define NONLS
  6. #define NORESOURCE
  7. #define NOSCROLL
  8. #define NOSHOWWINDOW
  9. #define NOWH
  10. #define NODESKTOP
  11. #define NOWINDOWSTATION
  12. #define NOSECURITY
  13. #define NOMSG
  14. #define NOWINOFFSETS
  15. #define NONCMESSAGES
  16. #define NOKEYSTATES
  17. #define NOCLIPBOARD
  18. #define NODEFERWINDOWPOS
  19. #define NOSYSMETRICS
  20. #define NOMENUS
  21. #define NODRAWTEXT
  22. #define NOMB
  23. #define NOCOLOR
  24. #define NOSYSCOMMANDS
  25. #define NOICONS
  26. #define NOWINMESSAGES
  27. #define NOMDI
  28. #define NOHELP
  29. #define NOSYSPARAMSINFO
  30. #define NOLANGUAGE
  31. #define NOTEXTMETRIC
  32. #define NOMETAFILE
  33. #define NOGDICAPMASKS
  34. #define NORASTEROPS
  35. #define NODRIVERS
  36. #define MMNOTIMER
  37. #define MMNOJOY
  38. #define MMNOMMIO
  39. #define MMNOMCI
  40. #define NOMCX
  41. #define NOCOMM
  42. #define NOKANJI
  43. #define NOPROFILER
  44. #define NOKERNEL
  45. #define NOGDI
  46. #define NONLS
  47. #define NOMEMMGR
  48. #define NOTOOLBAR
  49. #define NOTOOLTIPS
  50. #define NOUPDOWN
  51. #define NOSTATUSBAR
  52. #define NOTRACKBAR
  53. #define NOBTNLIST
  54. #define NODRAGLIST
  55. #define NOPROGRESS
  56. #define NOSHELLDEBUG
  57. #define NOMENUHELP
  58. #define NOHOTKEY
  59. #define NOMMIDS
  60. #define NONEWWAVE
  61. #define NONEWRIFF
  62. #define NOBITMAP
  63. #define NOJPEGDIB
  64. #define NONEWIC
  65. #define MMNODRV
  66. #define MMNOSOUND
  67. #define MMNOWAVE
  68. #define MMNOMIDI
  69. #define MMNOMIXER
  70. #define MMNOAUX
  71. #define MMNOTIMER
  72. #define MMNOMMIO
  73. #define MMNOMCI
  74. #define MMNOMMSYSTEM
  75. #define NO_APPLOADER
  76. #include "windows.h"
  77. #include <commctrl.h>
  78. #include "strids.h"
  79. #include "dlgids.h"
  80. IDI_APPICON ICON "ADMINCFG.ICO"
  81. IDB_IMGSMALL BITMAP "imgsmall.bmp"
  82. IDB_IMGLARGE BITMAP "imglarge.bmp"
  83. IDB_TOOLBAR BITMAP "toolbar.bmp"
  84. IDM_MAIN MENU
  85. BEGIN
  86. POPUP "&File"
  87. {
  88. MENUITEM "&New Policy", IDM_NEW
  89. MENUITEM "&Open Policy...", IDM_OPEN
  90. MENUITEM "Open &Registry", IDM_OPENREGISTRY
  91. MENUITEM "&Save", IDM_SAVE, GRAYED
  92. MENUITEM "Save &As...", IDM_SAVEAS, GRAYED
  93. MENUITEM "&Close" IDM_CLOSE, GRAYED
  94. MENUITEM SEPARATOR
  95. MENUITEM "E&xit", IDM_EXIT
  96. }
  97. POPUP "&Edit"
  98. {
  99. MENUITEM "Add &User...", IDM_ADDUSER, GRAYED
  100. MENUITEM "Add C&omputer...", IDM_ADDWORKSTATION, GRAYED
  101. #ifdef INCL_GROUP_SUPPORT
  102. MENUITEM "Add &Group...", IDM_ADDGROUP, GRAYED
  103. #endif
  104. MENUITEM "&Remove" IDM_REMOVE, GRAYED
  105. MENUITEM SEPARATOR
  106. MENUITEM "&Copy", IDM_COPY, GRAYED
  107. MENUITEM "&Paste", IDM_PASTE, GRAYED
  108. MENUITEM SEPARATOR
  109. MENUITEM "Proper&ties...", IDM_PROPERTIES, GRAYED
  110. }
  111. POPUP "&View"
  112. {
  113. MENUITEM "&Toolbar", IDM_TOOLBAR
  114. MENUITEM "Status &Bar", IDM_STATUSBAR
  115. MENUITEM SEPARATOR
  116. MENUITEM "Lar&ge Icons", IDM_LARGEICONS,
  117. MENUITEM "S&mall Icons", IDM_SMALLICONS,
  118. MENUITEM "&List", IDM_LIST,
  119. MENUITEM "&Details", IDM_DETAILS,
  120. }
  121. POPUP "&Options"
  122. {
  123. MENUITEM "&Policy Template...", IDM_TEMPLATEOPT
  124. #ifdef INCL_GROUP_SUPPORT
  125. MENUITEM SEPARATOR
  126. MENUITEM "&Group Priority...", IDM_GROUPPRIORITY
  127. #endif
  128. }
  129. POPUP "&Help"
  130. {
  131. MENUITEM "Help &Topics...", IDM_HELPCONTENTS
  132. MENUITEM SEPARATOR
  133. MENUITEM "&About...", IDM_ABOUT
  134. }
  135. END
  136. STRINGTABLE LOADONCALL DISCARDABLE
  137. BEGIN
  138. IDS_APPNAME, "System Policy Editor"
  139. IDS_UNTITLED, "(Untitled)"
  140. IDS_LOCALREGISTRY, "Local Registry"
  141. IDS_REGISTRYON, "Registry on %s"
  142. IDS_TITLEFORMAT, "%s - %s"
  143. IDS_WP, "WP"
  144. IDS_VIEW, "VIEW"
  145. IDS_INFDIR, "INF"
  146. IDS_DEF_NT_INFNAME, "WINNT.ADM"
  147. IDS_DEF_INFNAME, "WINDOWS.ADM"
  148. IDS_DEF_COMMONNAME, "COMMON.ADM"
  149. IDS_INF_EXT, ".ADM"
  150. IDS_SETTINGSFOR, "&Settings for %s"
  151. IDS_POLICIESFOR, "Policies for %s"
  152. IDS_InfOPENFILTER1, "Template Files (*.ADM)"
  153. IDS_InfOPENFILTER2, "*.ADM"
  154. IDS_InfOPENTITLE, "Open Template File"
  155. IDS_FILEFILTER1, "Policy Files (*.POL)"
  156. IDS_FILEFILTER2, "*.POL"
  157. IDS_OPENTITLE, "Open Policy File"
  158. IDS_QUERYSAVE, "Do you want to save changes to %s?"
  159. IDS_QUERYSAVEREGISTRY, "Do you want to save changes to the Registry?"
  160. IDS_QUERYSAVEREMOTEREGISTRY, "Do you want to save changes to the Registry on %s?"
  161. IDS_QUERYREMOVE_USER, "Are you sure you want to remove the user ""%s""?"
  162. IDS_QUERYREMOVE_WORKSTA,"Are you sure you want to remove the computer ""%s""?"
  163. #ifdef INCL_GROUP_SUPPORT
  164. IDS_QUERYREMOVE_GROUP, "Are you sure you want to remove the group ""%s""?"
  165. #endif
  166. IDS_QUERYREMOVE_MULTIPLE,"Are you sure you want to remove the selected entries?"
  167. IDS_QUERYPASTE_USER, "Are you sure you want to paste the clipboard contents to the user ""%s""?"
  168. IDS_QUERYPASTE_WORKSTA,"Are you sure you want to paste the clipboard contents the computer ""%s""?"
  169. IDS_QUERYPASTE_MULTIPLE,"Are you sure you want to paste the clipboard contents to the selected entries?"
  170. IDS_USERALREADYEXISTS, "The specified user has already been added."
  171. IDS_MACHINEALREADYEXISTS, "The specified computer has already been added."
  172. IDS_ENTRYREQUIRED, "You need to enter something for ""%s"" This field cannot be left blank."
  173. IDS_INVALIDNUM, "You need to enter a number for ""%s"" This field has invalid characters."
  174. IDS_NEEDCOMPUTERNAME, "You must type a computer name."
  175. IDS_CANTCONNECT, "Windows cannot connect to %s. Make sure that you have administrative privileges for %s, that it is on the network and has user-level access control enabled,\
  176. and that the Remote Registry service is enabled on both computers."
  177. IDS_CONNECT, "Connec&t..."
  178. IDS_DISCONNECT, "Disconnec&t"
  179. IDS_SAVING, "Saving %s..."
  180. IDS_LOADING, "Loading %s..."
  181. IDS_LOADINGTEMPLATE, "Loading template file %s..."
  182. IDS_READINGREGISTRY, "Reading from registry..."
  183. IDS_SAVINGREGISTRY, "Saving to registry..."
  184. IDS_CONNECTINGTO, "Connecting to %s..."
  185. IDS_NEEDWORKSTANAME, "You need to type a computer name."
  186. IDS_NEEDUSERNAME, "You need to type a user name."
  187. IDS_DUPLICATEWORKSTA, "There is already an entry for that computer."
  188. IDS_DUPLICATEUSER, "There is already an entry for that user."
  189. IDS_DUPLICATEGROUP, "There is already an entry for that group."
  190. IDS_CHOOSUSRDLL, "CHOOSUSR.DLL"
  191. IDS_ADDBUTTON, "&Add ->"
  192. IDS_CANTLOADCHOOSUSR, "Unable to load CHOOSUSR.DLL to browse for users."
  193. IDS_NOPROVIDER, "An Address Book Provider could not be found."
  194. IDS_INVALIDPROVIDER, "The Address Book Provider is not valid."
  195. IDS_PROVIDERERROR, "An error occurred trying to access the Address Book Provider."
  196. IDS_ERRORADDINGUSERS, "One or more users could not be added because there is not enough memory available."
  197. IDS_ENTRIES "%lu entries"
  198. IDS_ONEENTRY "1 entry"
  199. IDS_NOENTRIES "No entries"
  200. #ifndef INCL_GROUP_SUPPORT
  201. IDS_GROUPSNOTADDED, "User groups are not supported in this version of the System Policy Editor. The groups you selected will not be added."
  202. #else
  203. IDS_GROUPDLGTXT, "Enter the name of the &group to add:"
  204. IDS_GROUPDLGTITLE, "Add Group"
  205. #endif
  206. IDS_LISTBOX_SHOW, "Show..."
  207. IDS_VALUE, "Value"
  208. IDS_VALUENAME, "Value Name"
  209. IDS_LOCALUSER, "Local User"
  210. IDS_LOCALCOMPUTER, "Local Computer"
  211. IDS_DEFAULTUSER, "Default User"
  212. IDS_DEFAULTCOMPUTER, "Default Computer"
  213. IDS_VALUENAMENOTUNIQUE, "The name you typed has already been used. You need to type a unique name."
  214. IDS_EMPTYVALUENAME, "You need to type a name."
  215. IDS_VALUEDATANOTUNIQUE, "The value you typed has already been used. You need to type a unique value."
  216. IDS_EMPTYVALUEDATA, "You need to type a value."
  217. IDS_COMPUTERBROWSETITLE, "Click the computer that you want to add."
  218. IDS_COLUMNTITLE, "Policies for:"
  219. IDS_HELPFILE, "POLEDIT.CHM"
  220. IDS_CHOOSEUSER_TITLE, "Users on %s"
  221. IDS_ACCOUNTUNKNOWN, "Account Unknown"
  222. IDS_CANTLOADNETUI2, "Unable to load NETUI2.DLL to browse for users."
  223. IDS_ERRORADDINGGROUP, "The group could not be added because there is not enough memory available."
  224. IDS_ADDUSERS, "Add Users"
  225. IDS_ADDGROUPS, "Add Groups"
  226. END
  227. STRINGTABLE LOADONCALL DISCARDABLE
  228. BEGIN
  229. IDS_WORDTOOLONG, "The following keyword is too long:\n\n%s"
  230. IDS_ErrOUTOFMEMORY, "There is not enough memory available. Quit one or more applications and try again."
  231. IDS_ErrCANTOPENREGISTRY, "Unable to open the registry."
  232. IDS_ErrINVALIDPOLICYFILE, "%s is not a valid policy file."
  233. IDS_ErrREGERR_CANTSAVE, "An error occurred writing the Registry. The file cannot be saved."
  234. IDS_ErrREGERR_LOAD, "Unable to read from the Registry: error %lu occurred."
  235. IDS_ErrREGERR_SAVE, "Unable to save to the Registry: error %lu occurred."
  236. IDS_ErrREGERR_LOADKEY, "Unable to open %s: error %lu occurred."
  237. IDS_ErrREGERR_LOADKEY1, "Unable to open %s:\r\n%s"
  238. IDS_ErrREGERR_SAVEKEY, "Unable to save %s: error %lu occurred."
  239. IDS_ErrREGERR_SAVEKEY1, "Unable to save %s:\r\n%s"
  240. IDS_ParseFmt_MSG_FORMAT, "The following error occurred in %s on line %lu:\r\nError %lu %s\r\n\r\n"
  241. IDS_ParseFmt_FOUND, "Found: %s\r\n"
  242. IDS_ParseFmt_EXPECTED, "Expected: %s\r\n"
  243. IDS_ParseFmt_FATAL, "\r\nThe file can not be loaded.\r\n"
  244. IDS_ErrCOMMANDLINE, "The command line parameters are incorrect."
  245. IDS_ERRFORMAT, "Error %lu occurred"
  246. IDS_ErrOPENTEMPLATE, "Unable to open template file %s:\r\n%s"
  247. IDS_ParseErr_UNEXPECTED_KEYWORD, "Unexpected keyword"
  248. IDS_ParseErr_UNEXPECTED_EOF, "Unexpected end of file"
  249. IDS_ParseErr_DUPLICATE_KEYNAME, "Key name specified more than once"
  250. IDS_ParseErr_DUPLICATE_VALUENAME, "Value name specified more than once"
  251. IDS_ParseErr_DUPLICATE_ITEMNAME, "Item name specified more than once"
  252. IDS_ParseErr_DUPLICATE_ACTIONLIST, "More than one action list was specified"
  253. IDS_ParseErr_NO_KEYNAME, "There was no key name specified for this entry or any of its parents"
  254. IDS_ParseErr_NO_VALUENAME, "There was no value name specified"
  255. IDS_ParseErr_NO_VALUE, "There was no value specified"
  256. IDS_ParseErr_NO_ITEMNAME, "There was no item name specified"
  257. IDS_ParseErr_NOT_NUMERIC, "Expected a numeric value"
  258. IDS_ParseErr_STRING_NOT_FOUND, "The corresponding string was not found in the [strings] section"
  259. IDS_ParseErr_UNMATCHED_DIRECTIVE, "An unmatched interpreter directive was found"
  260. END
  261. STRINGTABLE LOADONCALL DISCARDABLE
  262. BEGIN
  263. IDS_TIPS + IDM_NEW, "New"
  264. IDS_TIPS + IDM_OPEN, "Open"
  265. IDS_TIPS + IDM_SAVE, "Save"
  266. IDS_TIPS + IDM_ADDUSER, "Add User"
  267. IDS_TIPS + IDM_ADDWORKSTATION,"Add Computer"
  268. IDS_TIPS + IDM_ADDGROUP, "Add Group"
  269. IDS_TIPS + IDM_REMOVE, "Remove"
  270. END
  271. IDA_ACCEL ACCELERATORS
  272. BEGIN
  273. VK_F1, IDM_HELPCONTENTS, VIRTKEY
  274. "?", IDM_ABOUT, ALT
  275. "/", IDM_ABOUT, ALT
  276. VK_RETURN, IDM_PROPERTIES, NOINVERT, VIRTKEY, ALT
  277. END
  278. ; Bring in the dialogs:
  279. RCINCLUDE ADMINCFG.DLG
  280. ; Bring in the version stamping information:
  281. RCINCLUDE ADMINCFG.RCV