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.

309 lines
15 KiB

  1. #include <windows.h>
  2. #include <ntverp.h>
  3. #define VER_FILETYPE VFT_DLL
  4. #define VER_FILESUBTYPE VFT2_UNKNOWN
  5. #define VER_FILEDESCRIPTION_STR "Protected Storage default provider"
  6. #define VER_INTERNALNAME_STR "psbase.dll"
  7. #include "common.ver"
  8. #include "resource.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. //
  11. // Dialog
  12. //
  13. IDD_ITEM_DETAILS DIALOG DISCARDABLE 0, 0, 254, 186
  14. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  15. CAPTION "Protected Storage"
  16. FONT 8, "MS Shell Dlg"
  17. BEGIN
  18. PUSHBUTTON "OK",IDOK,195,163,50,14
  19. CONTROL 129,IDC_STATIC1,"Static",SS_BITMAP, 9,9,43,168
  20. LTEXT "Protected Storage helps safeguard data you want to keep private. These details show which program is attempting to access data in your Protected Storage.",
  21. IDC_MESSAGE,63,9,180,26
  22. LTEXT "Program:",IDC_PASSWORD_LABEL,63,63,45,9
  23. LTEXT "Path:",IDC_PASSWORD_LABEL2,63,81,25,9
  24. LTEXT "Access type:",IDC_PASSWORD_LABEL3,63,99,45,9
  25. LTEXT "Item name:",IDC_PASSWORD_LABEL4,63,117,45,9
  26. LTEXT "Item type:",IDC_PASSWORD_LABEL5,63,135,36,9
  27. ICON "",IDC_ICONBOX,108,51,20,20,NOT WS_VISIBLE
  28. EDITTEXT IDC_APP_NAME,136,63,109,12,ES_AUTOHSCROLL | ES_READONLY |
  29. NOT WS_BORDER | NOT WS_TABSTOP
  30. EDITTEXT IDC_APP_PATH,108,81,137,12,ES_AUTOHSCROLL | ES_READONLY |
  31. NOT WS_BORDER | NOT WS_TABSTOP
  32. LTEXT "",IDC_ACCESS_TYPE,108,99,137,8
  33. EDITTEXT IDC_ITEM_NAME,108,117,137,8,ES_MULTILINE | ES_READONLY |
  34. NOT WS_BORDER | NOT WS_TABSTOP
  35. EDITTEXT IDC_ITEM_TYPE,108,135,137,8,ES_MULTILINE | ES_READONLY |
  36. NOT WS_BORDER | NOT WS_TABSTOP
  37. END
  38. IDD_SecPass_Win95 DIALOG DISCARDABLE 0, 0, 254, 186
  39. STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP | WS_CAPTION |
  40. WS_SYSMENU
  41. CAPTION "Protected Storage"
  42. FONT 8, "MS Shell Dlg"
  43. BEGIN
  44. PUSHBUTTON "OK",IDOK,141,163,50,14
  45. PUSHBUTTON "Cancel",IDCANCEL,195,163,50,14
  46. EDITTEXT IDC_EDIT1,133,117,84,12,ES_PASSWORD | ES_AUTOHSCROLL
  47. EDITTEXT IDC_EDIT0,133,134,84,12,ES_PASSWORD | ES_AUTOHSCROLL
  48. LTEXT "Protected Storage uses your Windows password to protect your personal data. Your password is not currently available to Protected Storage for one of the following reasons:",
  49. IDC_MAIN_CAPTION,63,9,168,34
  50. LTEXT "- You may have mistyped your Windows password.",
  51. IDC_MAIN_CAPTION2,63,54,174,9
  52. LTEXT "- You may have recently changed your password.",
  53. IDC_MAIN_CAPTION3,63,65,175,9
  54. LTEXT "Windows password:",IDC_MAIN_CAPTION4,63,117,65,8
  55. LTEXT "Previous password:",IDC_MAIN_CAPTION5,63,133,63,8
  56. CONTROL 129,IDC_STATIC1,"Static",SS_BITMAP, 9,9,43,168
  57. LTEXT "Please re-enter your password below. If you changed it recently then enter your previous password as well.",
  58. IDC_STATIC2,63,90,182,19
  59. END
  60. IDD_ADVANCED_CONFIRM DIALOG DISCARDABLE 0, 0, 294, 186
  61. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  62. CAPTION "Protected Storage"
  63. FONT 8, "MS Shell Dlg"
  64. BEGIN
  65. PUSHBUTTON "&Next >",IDOK,179,163,50,14
  66. PUSHBUTTON "Cancel",IDCANCEL,235,163,50,14
  67. CONTROL "&High",IDC_RADIO_ASSIGNPW,"Button",BS_AUTORADIOBUTTON |
  68. WS_TABSTOP,102,36,31,10
  69. CONTROL "&Medium",IDC_RADIO_OKCANCEL,"Button",BS_AUTORADIOBUTTON |
  70. WS_TABSTOP,102,72,41,10
  71. CONTROL "&Low",IDC_RADIO_NOCONFIRM,"Button",BS_AUTORADIOBUTTON |
  72. WS_TABSTOP,102,108,29,10
  73. CONTROL 125,IDC_STATIC1,"Static",SS_BITMAP | SS_SUNKEN,9,9,81,
  74. 140
  75. CONTROL "",IDC_STATIC2,"Static",SS_BLACKFRAME | SS_SUNKEN,9,155,
  76. 276,1
  77. PUSHBUTTON "< Back",IDC_BUTTON3,129,163,50,14,WS_DISABLED
  78. LTEXT "Choose a security level appropriate for this item contained in your Protected Storage.",
  79. IDC_MAIN_CAPTION,102,9,182,27
  80. LTEXT "Request my permission with a password when this item is to be used.",
  81. IDC_STATIC3,114,46,165,19
  82. LTEXT "Request my permission when this item is to be used.",
  83. IDC_STATIC4,114,82,165,19
  84. LTEXT "Automatically grant permission to use this item without notification.",
  85. IDC_STATIC5,114,118,165,19
  86. END
  87. IDD_ADVANCED_CONFIRM_H DIALOG DISCARDABLE 0, 0, 294, 186
  88. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  89. CAPTION "Protected Storage"
  90. FONT 8, "MS Shell Dlg"
  91. BEGIN
  92. PUSHBUTTON "&Finish",IDOK,177,163,50,14
  93. PUSHBUTTON "Cancel",IDCANCEL,235,163,50,14
  94. CONTROL "&Use this password to access this item.",
  95. IDC_RADIO_SELEXISTING,"Button",BS_AUTORADIOBUTTON,102,36,
  96. 135,10
  97. COMBOBOX IDC_PW_NAME,173,49,84,53,CBS_DROPDOWNLIST | WS_VSCROLL |
  98. WS_TABSTOP
  99. CONTROL "&Create a new password for this item.",
  100. IDC_RADIO_DEFINENEW,"Button",BS_AUTORADIOBUTTON | BS_TOP |
  101. BS_MULTILINE,102,72,129,10
  102. EDITTEXT IDC_PW_NEWNAME,173,84,84,12,WS_DISABLED
  103. EDITTEXT IDC_EDIT1,173,111,84,12,ES_PASSWORD | ES_AUTOHSCROLL |
  104. WS_DISABLED
  105. EDITTEXT IDC_EDIT2,173,128,84,12,ES_PASSWORD | ES_AUTOHSCROLL |
  106. WS_DISABLED
  107. CONTROL "",IDC_STATIC1,"Static",SS_BLACKFRAME | SS_SUNKEN,9,155,
  108. 276,1
  109. PUSHBUTTON "< Back",IDC_BACK,127,163,50,14
  110. CONTROL 125,IDC_STATIC2,"Static",SS_BITMAP | SS_SUNKEN,9,9,81,
  111. 140
  112. LTEXT "Password for:",IDC_STATIC3,114,49,59,8
  113. LTEXT "Password for:",IDC_STATIC4,114,85,59,8
  114. LTEXT "Password:",IDC_STATIC5,114,112,59,8
  115. LTEXT "Confirm:",IDC_STATIC6,114,128,59,8
  116. LTEXT "Choose or create a password to protect this item.",
  117. IDC_STATIC7,102,9,177,20
  118. LTEXT "(example: Tom)",IDC_STATIC8,170,99,49,8
  119. END
  120. IDD_ADVANCED_CONFIRM_M DIALOG DISCARDABLE 0, 0, 294, 186
  121. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  122. CAPTION "Protected Storage"
  123. FONT 8, "MS Shell Dlg"
  124. BEGIN
  125. PUSHBUTTON "&Finish",IDOK,179,163,50,14
  126. PUSHBUTTON "Cancel",IDCANCEL,235,163,50,14
  127. CONTROL "",IDC_STATIC1,"Static",SS_BLACKFRAME | SS_SUNKEN,9,155,
  128. 276,1
  129. PUSHBUTTON "< Back",IDC_BACK,129,163,50,14
  130. LTEXT "You have set your security level to medium.",
  131. IDC_STATIC2,102,9,166,18
  132. CONTROL 125,IDC_STATIC3,"Static",SS_BITMAP | SS_SUNKEN,9,9,80,
  133. 139
  134. LTEXT "A dialog will prompt for your permission when this item is to be used.",
  135. IDC_STATIC4,102,27,166,23
  136. END
  137. IDD_ADVANCED_CONFIRM_L DIALOG DISCARDABLE 0, 0, 294, 186
  138. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  139. CAPTION "Protected Storage"
  140. FONT 8, "MS Shell Dlg"
  141. BEGIN
  142. PUSHBUTTON "&Finish",IDOK,179,163,50,14
  143. PUSHBUTTON "Cancel",IDCANCEL,235,163,50,14
  144. CONTROL "",IDC_STATIC1,"Static",SS_BLACKFRAME | SS_SUNKEN,9,155,
  145. 276,1
  146. PUSHBUTTON "< Back",IDC_BACK,129,163,50,14
  147. LTEXT "WARNING: You have set your security level to low.",
  148. IDC_STATIC2,102,9,177,18
  149. CONTROL 136,IDC_STATIC3,"Static",SS_BITMAP | SS_SUNKEN,9,9,81,
  150. 140
  151. LTEXT "This will automatically grant applications permission to use this item without notification.",
  152. IDC_STATIC4,102,27,177,30
  153. END
  154. IDD_SecPass_WinNT DIALOG DISCARDABLE 0, 0, 254, 153
  155. STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP | WS_CAPTION |
  156. WS_SYSMENU
  157. CAPTION "Protected Storage"
  158. FONT 8, "MS Shell Dlg"
  159. BEGIN
  160. EDITTEXT IDC_EDIT0,161,72,84,12,ES_PASSWORD | ES_AUTOHSCROLL
  161. PUSHBUTTON "OK",IDOK,141,130,50,14
  162. PUSHBUTTON "Cancel",IDCANCEL,195,130,50,14
  163. LTEXT "Protected Storage uses your Windows password to protect your personal data. Protected Storage has detected a password change.",
  164. IDC_MAIN_CAPTION,63,9,168,34
  165. LTEXT "To enable Protected Storage, you must enter your previous Windows password below.",
  166. IDC_MAIN_CAPTION2,63,45,172,18
  167. LTEXT "Previous Windows password:",IDC_MAIN_CAPTION4,63,72,95,
  168. 8
  169. CONTROL 129,IDC_STATIC5,"Static",SS_BITMAP, 9,9,43,135
  170. END
  171. IDD_PASSWORD_CHANGE DIALOG DISCARDABLE 0, 0, 254, 153
  172. STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP | WS_CAPTION |
  173. WS_SYSMENU
  174. CAPTION "Protected Storage"
  175. FONT 8, "MS Shell Dlg"
  176. BEGIN
  177. PUSHBUTTON "OK",IDOK,141,130,50,14
  178. PUSHBUTTON "Cancel",IDCANCEL,195,130,50,14
  179. COMBOBOX IDC_PW_NAME,151,46,85,37,CBS_DROPDOWNLIST | WS_VSCROLL |
  180. WS_TABSTOP
  181. EDITTEXT IDC_EDIT0,151,72,85,12,ES_PASSWORD | ES_AUTOHSCROLL
  182. EDITTEXT IDC_EDIT1,152,89,84,12,ES_PASSWORD | ES_AUTOHSCROLL
  183. EDITTEXT IDC_EDIT2,152,106,84,12,ES_PASSWORD | ES_AUTOHSCROLL
  184. CONTROL 129,IDC_STATIC5,"Static",SS_BITMAP, 9,9,43,135
  185. LTEXT "&Change password for: ",IDC_STATIC3,63,48,72,8
  186. LTEXT "Cu&rrent password:",IDC_STATIC2,64,74,68,9
  187. LTEXT "&New Password:",IDC_LABEL_EDIT1,64,91,68,9
  188. LTEXT "Confir&m:",IDC_LABEL_EDIT2,64,108,79,9
  189. LTEXT "",IDC_MESSAGE,63,9,182,26
  190. END
  191. IDD_SIMPLIFIED_PASSWD DIALOG DISCARDABLE 0, 0, 254, 153
  192. STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP | WS_CAPTION |
  193. WS_SYSMENU
  194. CAPTION "Protected Storage"
  195. FONT 8, "MS Shell Dlg"
  196. BEGIN
  197. EDITTEXT IDC_EDIT1,156,70,80,12,ES_PASSWORD | ES_AUTOHSCROLL
  198. CONTROL "&Remember password",IDC_CACHEPW,"Button",
  199. BS_AUTOCHECKBOX | WS_TABSTOP,156,84,82,10
  200. PUSHBUTTON "OK",IDOK,87,130,50,14
  201. PUSHBUTTON "Cancel",IDCANCEL,141,130,50,14
  202. PUSHBUTTON "Set &Security Level...",IDC_CHANGE_SECURITY,164,106,81,
  203. 14
  204. PUSHBUTTON "&Details...",IDC_ADVANCED,195,130,50,14
  205. EDITTEXT IDC_APP_MSG,63,9,182,55,ES_MULTILINE | ES_AUTOVSCROLL |
  206. ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP
  207. LTEXT "Security level set to ",IDC_SEC_PREFIX,63,107,66,18
  208. CONTROL 129,IDC_SEC_PREFIX,"Static",SS_BITMAP, 9,9,43,135
  209. EDITTEXT IDC_MESSAGE,93,51,129,12,ES_AUTOHSCROLL | ES_READONLY |
  210. NOT WS_VISIBLE | NOT WS_BORDER | NOT WS_TABSTOP
  211. ICON "",IDC_ICONBOX,63,41,21,20,NOT WS_VISIBLE
  212. LTEXT "High",IDC_SEC_LEVEL,129,107,31,8
  213. EDITTEXT IDC_LABEL_EDIT1,63,73,84,12,ES_AUTOHSCROLL | ES_READONLY |
  214. NOT WS_BORDER
  215. END
  216. /////////////////////////////////////////////////////////////////////////////
  217. //
  218. // Icon
  219. //
  220. // Icon with lowest ID value placed first to ensure application icon
  221. // remains consistent on all systems.
  222. IDI_ICON1 ICON DISCARDABLE "icon1.ico"
  223. /////////////////////////////////////////////////////////////////////////////
  224. //
  225. // Bitmap
  226. //
  227. IDB_BITMAP_LOCKKEY BITMAP DISCARDABLE "wmark.BMP"
  228. IDB_BITMAP_BLANK BITMAP DISCARDABLE "user.BMP"
  229. IDB_BITMAP_ALERT BITMAP DISCARDABLE "unsigned.bmp"
  230. /////////////////////////////////////////////////////////////////////////////
  231. //
  232. // String Table
  233. //
  234. STRINGTABLE DISCARDABLE
  235. BEGIN
  236. IDS_PASSWORD_CREATE_MESSAGE
  237. "Define a password that you may use to protect your private data items."
  238. IDS_PASSWORD_NOMATCH "The passwords you entered were different. Please re-enter."
  239. IDS_PASSWORD_CHANGE_MESSAGE
  240. "Protected Storage has been asked to change your password. Enter your existing password below, then enter a new password."
  241. IDS_PASSWORD_MUSTNAME "You must give this password a name."
  242. IDS_PASSWORD_CHANGE_REQ
  243. "Protected Storage has detected a password change. To change the password, please respond to the questions below."
  244. IDS_PASSWORD_DUPLICATE "This password name is already in use. Please choose another."
  245. IDS_PASSWORD_ADD_ERROR "Protected Storage could not add your password."
  246. IDS_PASSWORD_ERROR_DLGTITLE "Password Error"
  247. IDS_PROMPT_READITEM "Read"
  248. IDS_PROMPT_WRITEITEM "Write"
  249. IDS_PROMPT_DELETEITEM "Delete"
  250. IDS_PASSWORD_CHANGE_ERROR
  251. "Protected Storage could not change your password."
  252. IDS_PASSWORD_SOLICIT_OLD_MESSAGE
  253. "Before changing the security on this item, it must first be unlocked. Please enter the password protecting this item."
  254. END
  255. STRINGTABLE DISCARDABLE
  256. BEGIN
  257. IDS_PASSWORD_PROMPT_PREFIX "Password for "
  258. IDS_PASSWORD_PROMPT_SUFFIX ":"
  259. IDS_ITEM_DETAILS_BANNER "Protected Storage helps safeguard data you wish to keep private. These details show which application is attempting to access data in your Protected Storage."
  260. IDS_PROMPT_OPENITEM "Opening an item for multiple accesses"
  261. IDS_WIN95_PASSWORDS_AREGARBAGE
  262. "Windows 95 cannot confirm that this is your new password. This may be because you mistyped your password.\nOccasionally, changing configurations can confuse Windows into misreporting your current password. If you use multiple passwords when you logon to Windows (for example, a network logon) the last password you enter is considered to be your Windows password.\nEither re-enter your Windows password or select Cancel to abort this password change."
  263. IDS_SIMPLIFIED_DLG_MSG "The application""%ls"" has requested permission to use the item ""%ls."""
  264. END
  265. STRINGTABLE DISCARDABLE
  266. BEGIN
  267. IDS_PROMPT_HIGH_SECURITY "High"
  268. IDS_PROMPT_MED_SECURITY "Medium"
  269. IDS_PROMPT_LOW_SECURITY "Low"
  270. END
  271. STRINGTABLE DISCARDABLE
  272. BEGIN
  273. IDS_PASSWORD_NOVERIFY "The password you entered does not match the password under which data is currently stored.\n\nYou may have mistyped your password. "
  274. IDS_PASSWORD_WIN_NOVERIFY
  275. "The password you entered does not match the password under which data is currently stored.\n\nYou may have mistyped your password. If you use multiple passwords when you logon to Windows (for example, a network logon) the last password you enter is considered to be your Windows password."
  276. END
  277. STRINGTABLE DISCARDABLE
  278. BEGIN
  279. IDS_TITLE_CONTAINER_MAPPING
  280. "Private Key Container"
  281. IDS_WINDOWS_NT_SECURITY_ALERT
  282. "Windows Security Alert"
  283. END