Leaked source code of windows server 2003
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.

199 lines
7.2 KiB

  1. #define WIN31
  2. #include <windows.h>
  3. #include "RegEdit.h"
  4. #include "SDKRegEd.h"
  5. MAINICON ICON RegEdit.ico
  6. STRINGTABLE PRELOAD MOVEABLE DISCARDABLE
  7. BEGIN
  8. IDS_LONGNAME, "Registration Info Editor"
  9. IDS_MEDIUMNAME, "Registration Editor"
  10. IDS_SHORTNAME, "RegEdit"
  11. IDS_OUTOFMEMORY, "Not enough memory to continue. Quit one or more applications, and then try again."
  12. IDS_WIDTH, "width"
  13. IDS_HEIGHT, "height"
  14. IDS_DESCRIPTION, "An editor for registration information for applications."
  15. IDS_SUREDELETE, "Are you sure you want to delete ""%s"" File Type?"
  16. IDS_MERGETITLE, "Merge Registration File"
  17. IDS_BROWSETITLE, "Browse"
  18. IDS_EXES, ",Programs,*.com;*.exe;*.bat;*.pif,All Files (*.*),*.*,"
  19. IDS_REGS, ",Registration Files (*.reg),*.reg,All Files (*.*),*.*,"
  20. #ifdef USECUSTOMFILTER
  21. IDS_CUSTEXES, ",Default,*.com;*.exe;*.bat;*.pif,"
  22. IDS_CUSTREGS, ",Default,*.reg,"
  23. #endif
  24. IDS_REGHEADER, "REGEDIT"
  25. IDS_CANTOPENFILE, "Cannot open file: %s.\nMake sure the specified path and filename are correct."
  26. IDS_CANTREADFILE, "Cannot read file: %s"
  27. IDS_BADFORMAT, "This is not a registration file.\nSelect a registration file (.REG), and then try again."
  28. IDS_SUCCESSREAD, "Information in %s has been successfully registered in the registration database."
  29. IDS_BUSY, "The registration database editor is busy with another operation;\nfinish that and try again."
  30. IDS_HELPFILE, "regedit.hlp"
  31. IDS_HELP, "Id 0x%04x"
  32. IDS_HELPERR, "There is a problem with the Help system."
  33. IDS_SDKHELPFILE, "regeditv.hlp"
  34. IDS_EXISTS, "The identifier %s already exists.\nType a unique name in the Identifier box."
  35. IDS_INVALIDID, "The specified identifier is not valid.\n\nSpecify a valid identifier. The identifier must be unique and can contain up to 63 characters. It cannot contain any spaces, extended or control characters, or backslashes (\)."
  36. IDS_INVALIDNAME, "There is no File Type specified.\n\nType a description of the file type in the File Type box."
  37. IDS_ADD, "Add File Type"
  38. IDS_COPY, "Copy File Type"
  39. IDS_BADDB, "There is a problem with the REG.DAT file. Quit Windows, delete REG.DAT, and then restart Windows. Then run REGEDIT.EXE and restore the registration database. For more information, see online Help for the Registration Info Editor."
  40. IDS_BADKEY, "There was an error in modifying the database. The registration database may be corrupted."
  41. IDS_CANTOPENDB, "The file REG.DAT could not be opened. Make sure that it exists in your Windows directory and that it is not currently being used by another application."
  42. IDS_CANTWRITEDB, "Cannot write to file REG.DAT. Make sure there is enough space on the disk."
  43. IDS_ENDERROR, "%s\n\nDo you want to close Registration Info Editor?"
  44. IDS_WRITETITLE, "Save Registration File"
  45. IDS_CANTWRITEFILE, "Cannot write to the file. Make sure the disk is not full or write-protected."
  46. IDS_NOSUBKEY, "Cannot copy key to a subkey of itself."
  47. IDS_ALREADYEXIST, "Cannot copy key to an existing key. Specify a new key name in the To box."
  48. IDS_SAVECHANGES, "Changes have been made to the registration database. Do you want to save them?"
  49. IDS_ERRORSAVING, "There was an error saving the changes."
  50. IDS_SURERESTORE, "Are you sure you want to lose all changes?"
  51. IDS_NODELROOT, "Cannot delete the root key. Delete all subkeys instead."
  52. IDS_SOURCENOTEXIST, "The key '%s' does not exist."
  53. END
  54. MAINMENU MENU PRELOAD MOVEABLE DISCARDABLE
  55. BEGIN
  56. POPUP "&File"
  57. BEGIN
  58. MENUITEM "&Merge Registration File...", ID_MERGEFILE
  59. MENUITEM SEPARATOR
  60. MENUITEM "E&xit", ID_EXIT
  61. END
  62. POPUP "&Edit"
  63. BEGIN
  64. MENUITEM "&Add File Type...", ID_ADD
  65. MENUITEM "&Copy File Type...", ID_COPY
  66. MENUITEM "&Modify File Type...", ID_MODIFY
  67. MENUITEM "&Delete File Type", ID_DELETE
  68. END
  69. #ifndef NOHELP
  70. POPUP "&Help"
  71. BEGIN
  72. MENUITEM "&Contents", ID_HELPINDEX
  73. MENUITEM "&Search for Help On...", ID_HELPSEARCH
  74. MENUITEM "&How to Use Help", ID_HELPUSINGHELP
  75. MENUITEM SEPARATOR
  76. MENUITEM "&About Registration Editor...", ID_ABOUT
  77. END
  78. #else
  79. POPUP "&Info"
  80. BEGIN
  81. MENUITEM "&About Registration Editor...", ID_ABOUT
  82. END
  83. #endif
  84. END
  85. SDKMAINWND DIALOG PRELOAD MOVEABLE DISCARDABLE 16, 16, 160, 128
  86. STYLE WS_CHILD
  87. FONT 8, "Helv"
  88. BEGIN
  89. LISTBOX ID_IDLIST, 0, 26, 160, 100, WS_TABSTOP | WS_VSCROLL | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS
  90. LISTBOX ID_VALLIST, -100, -100, 10, 10
  91. LISTBOX ID_DELLIST, -100, -100, 10, 10
  92. LTEXT "Full Path:", -1, 4, 2, 48, 8
  93. LTEXT "", ID_FULLPATH, 54, 2, 100, 8
  94. LTEXT "Value:", -1, 4, 14, 48, 8
  95. EDITTEXT ID_VALUE, 54, 12, 100, 12, ES_AUTOHSCROLL
  96. END
  97. #include "messages\usa\sdkreged.dlg"
  98. MAINWND DIALOG PRELOAD MOVEABLE DISCARDABLE 0, 0, 160, 96
  99. STYLE WS_CHILD
  100. FONT 8, "Helv"
  101. BEGIN
  102. LTEXT "Registered File Types:", -1, 4, 4, 80, 10
  103. LISTBOX ID_NAMELIST, 0, 16, 160, 80, WS_TABSTOP | WS_VSCROLL | LBS_DISABLENOSCROLL | LBS_SORT
  104. LISTBOX ID_IDLIST, -100, -100, 10, 10
  105. END
  106. EDITDLG DIALOG LOADONCALL MOVEABLE DISCARDABLE 16, 16, 212, 172
  107. STYLE WS_CAPTION | WS_SYSMENU | DS_MODALFRAME
  108. CAPTION "Modify File Type"
  109. FONT 8, "Helv"
  110. BEGIN
  111. LTEXT "&Identifier:", -1, 4, 4, 40, 10
  112. LTEXT "", ID_STATCLASSID, 48, 4, 92, 10
  113. EDITTEXT ID_CLASSID, 48, 2, 92, 12, ES_AUTOHSCROLL
  114. LTEXT "&File Type:", -1, 4, 20, 40, 10
  115. EDITTEXT ID_CLASSNAME, 48, 18, 92, 12, ES_AUTOHSCROLL
  116. GROUPBOX "Action", -1, 4, 30, 136, 24
  117. RADIOBUTTON "&Open", ID_OPENRADIO, 20, 42, 52, 10
  118. RADIOBUTTON "&Print", ID_PRINTRADIO, 76, 42, 52, 10
  119. LTEXT "&Command:", -1, 4, 60, 40, 10
  120. EDITTEXT ID_COMMAND, 48, 58, 92, 12, ES_AUTOHSCROLL
  121. CHECKBOX "&Uses DDE", ID_USESDDE, 4, 76, 68, 10
  122. GROUPBOX "DDE", ID_GROUPDDE, 4, 96, 204, 72
  123. LTEXT "&DDE Message:", -1, 8, 108, 108, 10
  124. EDITTEXT ID_FIRSTDDEEDIT, 8, 118, 108, 12, ES_AUTOHSCROLL
  125. LTEXT "(optional)\nDDE Application &Not Running:", -1, 8, 134, 108, 18
  126. EDITTEXT ID_FIRSTDDEEDIT+1, 8, 152, 108, 12, ES_AUTOHSCROLL
  127. LTEXT "&Application:", -1, 132, 108, 56, 10
  128. EDITTEXT ID_FIRSTDDEEDIT+2, 132, 118, 56, 12, ES_AUTOHSCROLL
  129. LTEXT "&Topic:", -1, 132, 142, 56, 10
  130. EDITTEXT ID_FIRSTDDEEDIT+3, 132, 152, 56, 12, ES_AUTOHSCROLL
  131. DEFPUSHBUTTON "OK", IDOK, 160, 6, 48, 12
  132. PUSHBUTTON "Cancel", IDCANCEL, 160, 20, 48, 12
  133. PUSHBUTTON "&Browse...", ID_BROWSE, 160, 38, 48, 12
  134. #ifndef NOHELP
  135. PUSHBUTTON "&Help", ID_HELPBUTTON, 160, 52, 48, 12
  136. #endif
  137. END
  138. RegEdit ACCELERATORS
  139. BEGIN
  140. #ifndef NOHELP
  141. VK_F1, ID_HELPINDEX, VIRTKEY
  142. #endif
  143. VK_RETURN, ID_MODIFY, VIRTKEY
  144. VK_DELETE, ID_DELETE, VIRTKEY
  145. END
  146. SDKRegEd ACCELERATORS
  147. BEGIN
  148. #ifndef NOHELP
  149. VK_F1, ID_HELPINDEX, VIRTKEY
  150. #endif
  151. VK_F2, ID_EDITVAL, VIRTKEY
  152. VK_F3, ID_FINDNEXT, VIRTKEY
  153. VK_RETURN, ID_MODIFY, VIRTKEY
  154. VK_DELETE, ID_DELETE, VIRTKEY
  155. END
  156. SDKRegEdVal ACCELERATORS
  157. BEGIN
  158. #ifndef NOHELP
  159. VK_F1, ID_HELPINDEX, VIRTKEY
  160. #endif
  161. VK_F3, ID_FINDNEXT, VIRTKEY
  162. VK_RETURN, ID_MODIFY, VIRTKEY
  163. END
  164. #ifdef REGLOAD
  165. #include "messages\usa\regload.rcv"
  166. #else
  167. #include "messages\usa\regedit.rcv"
  168. #endif