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
309 lines
15 KiB
#include <windows.h>
|
|
|
|
#include <ntverp.h>
|
|
|
|
#define VER_FILETYPE VFT_DLL
|
|
#define VER_FILESUBTYPE VFT2_UNKNOWN
|
|
#define VER_FILEDESCRIPTION_STR "Protected Storage default provider"
|
|
#define VER_INTERNALNAME_STR "psbase.dll"
|
|
|
|
#include "common.ver"
|
|
|
|
#include "resource.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Dialog
|
|
//
|
|
|
|
IDD_ITEM_DETAILS DIALOG DISCARDABLE 0, 0, 254, 186
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Protected Storage"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
PUSHBUTTON "OK",IDOK,195,163,50,14
|
|
CONTROL 129,IDC_STATIC1,"Static",SS_BITMAP, 9,9,43,168
|
|
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.",
|
|
IDC_MESSAGE,63,9,180,26
|
|
LTEXT "Program:",IDC_PASSWORD_LABEL,63,63,45,9
|
|
LTEXT "Path:",IDC_PASSWORD_LABEL2,63,81,25,9
|
|
LTEXT "Access type:",IDC_PASSWORD_LABEL3,63,99,45,9
|
|
LTEXT "Item name:",IDC_PASSWORD_LABEL4,63,117,45,9
|
|
LTEXT "Item type:",IDC_PASSWORD_LABEL5,63,135,36,9
|
|
ICON "",IDC_ICONBOX,108,51,20,20,NOT WS_VISIBLE
|
|
EDITTEXT IDC_APP_NAME,136,63,109,12,ES_AUTOHSCROLL | ES_READONLY |
|
|
NOT WS_BORDER | NOT WS_TABSTOP
|
|
EDITTEXT IDC_APP_PATH,108,81,137,12,ES_AUTOHSCROLL | ES_READONLY |
|
|
NOT WS_BORDER | NOT WS_TABSTOP
|
|
LTEXT "",IDC_ACCESS_TYPE,108,99,137,8
|
|
EDITTEXT IDC_ITEM_NAME,108,117,137,8,ES_MULTILINE | ES_READONLY |
|
|
NOT WS_BORDER | NOT WS_TABSTOP
|
|
EDITTEXT IDC_ITEM_TYPE,108,135,137,8,ES_MULTILINE | ES_READONLY |
|
|
NOT WS_BORDER | NOT WS_TABSTOP
|
|
END
|
|
|
|
IDD_SecPass_Win95 DIALOG DISCARDABLE 0, 0, 254, 186
|
|
STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP | WS_CAPTION |
|
|
WS_SYSMENU
|
|
CAPTION "Protected Storage"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
PUSHBUTTON "OK",IDOK,141,163,50,14
|
|
PUSHBUTTON "Cancel",IDCANCEL,195,163,50,14
|
|
EDITTEXT IDC_EDIT1,133,117,84,12,ES_PASSWORD | ES_AUTOHSCROLL
|
|
EDITTEXT IDC_EDIT0,133,134,84,12,ES_PASSWORD | ES_AUTOHSCROLL
|
|
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:",
|
|
IDC_MAIN_CAPTION,63,9,168,34
|
|
LTEXT "- You may have mistyped your Windows password.",
|
|
IDC_MAIN_CAPTION2,63,54,174,9
|
|
LTEXT "- You may have recently changed your password.",
|
|
IDC_MAIN_CAPTION3,63,65,175,9
|
|
LTEXT "Windows password:",IDC_MAIN_CAPTION4,63,117,65,8
|
|
LTEXT "Previous password:",IDC_MAIN_CAPTION5,63,133,63,8
|
|
CONTROL 129,IDC_STATIC1,"Static",SS_BITMAP, 9,9,43,168
|
|
LTEXT "Please re-enter your password below. If you changed it recently then enter your previous password as well.",
|
|
IDC_STATIC2,63,90,182,19
|
|
END
|
|
|
|
IDD_ADVANCED_CONFIRM DIALOG DISCARDABLE 0, 0, 294, 186
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Protected Storage"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
PUSHBUTTON "&Next >",IDOK,179,163,50,14
|
|
PUSHBUTTON "Cancel",IDCANCEL,235,163,50,14
|
|
CONTROL "&High",IDC_RADIO_ASSIGNPW,"Button",BS_AUTORADIOBUTTON |
|
|
WS_TABSTOP,102,36,31,10
|
|
CONTROL "&Medium",IDC_RADIO_OKCANCEL,"Button",BS_AUTORADIOBUTTON |
|
|
WS_TABSTOP,102,72,41,10
|
|
CONTROL "&Low",IDC_RADIO_NOCONFIRM,"Button",BS_AUTORADIOBUTTON |
|
|
WS_TABSTOP,102,108,29,10
|
|
CONTROL 125,IDC_STATIC1,"Static",SS_BITMAP | SS_SUNKEN,9,9,81,
|
|
140
|
|
CONTROL "",IDC_STATIC2,"Static",SS_BLACKFRAME | SS_SUNKEN,9,155,
|
|
276,1
|
|
PUSHBUTTON "< Back",IDC_BUTTON3,129,163,50,14,WS_DISABLED
|
|
LTEXT "Choose a security level appropriate for this item contained in your Protected Storage.",
|
|
IDC_MAIN_CAPTION,102,9,182,27
|
|
LTEXT "Request my permission with a password when this item is to be used.",
|
|
IDC_STATIC3,114,46,165,19
|
|
LTEXT "Request my permission when this item is to be used.",
|
|
IDC_STATIC4,114,82,165,19
|
|
LTEXT "Automatically grant permission to use this item without notification.",
|
|
IDC_STATIC5,114,118,165,19
|
|
END
|
|
|
|
IDD_ADVANCED_CONFIRM_H DIALOG DISCARDABLE 0, 0, 294, 186
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Protected Storage"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
PUSHBUTTON "&Finish",IDOK,177,163,50,14
|
|
PUSHBUTTON "Cancel",IDCANCEL,235,163,50,14
|
|
CONTROL "&Use this password to access this item.",
|
|
IDC_RADIO_SELEXISTING,"Button",BS_AUTORADIOBUTTON,102,36,
|
|
135,10
|
|
COMBOBOX IDC_PW_NAME,173,49,84,53,CBS_DROPDOWNLIST | WS_VSCROLL |
|
|
WS_TABSTOP
|
|
CONTROL "&Create a new password for this item.",
|
|
IDC_RADIO_DEFINENEW,"Button",BS_AUTORADIOBUTTON | BS_TOP |
|
|
BS_MULTILINE,102,72,129,10
|
|
EDITTEXT IDC_PW_NEWNAME,173,84,84,12,WS_DISABLED
|
|
EDITTEXT IDC_EDIT1,173,111,84,12,ES_PASSWORD | ES_AUTOHSCROLL |
|
|
WS_DISABLED
|
|
EDITTEXT IDC_EDIT2,173,128,84,12,ES_PASSWORD | ES_AUTOHSCROLL |
|
|
WS_DISABLED
|
|
CONTROL "",IDC_STATIC1,"Static",SS_BLACKFRAME | SS_SUNKEN,9,155,
|
|
276,1
|
|
PUSHBUTTON "< Back",IDC_BACK,127,163,50,14
|
|
CONTROL 125,IDC_STATIC2,"Static",SS_BITMAP | SS_SUNKEN,9,9,81,
|
|
140
|
|
LTEXT "Password for:",IDC_STATIC3,114,49,59,8
|
|
LTEXT "Password for:",IDC_STATIC4,114,85,59,8
|
|
LTEXT "Password:",IDC_STATIC5,114,112,59,8
|
|
LTEXT "Confirm:",IDC_STATIC6,114,128,59,8
|
|
LTEXT "Choose or create a password to protect this item.",
|
|
IDC_STATIC7,102,9,177,20
|
|
LTEXT "(example: Tom)",IDC_STATIC8,170,99,49,8
|
|
END
|
|
|
|
IDD_ADVANCED_CONFIRM_M DIALOG DISCARDABLE 0, 0, 294, 186
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Protected Storage"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
PUSHBUTTON "&Finish",IDOK,179,163,50,14
|
|
PUSHBUTTON "Cancel",IDCANCEL,235,163,50,14
|
|
CONTROL "",IDC_STATIC1,"Static",SS_BLACKFRAME | SS_SUNKEN,9,155,
|
|
276,1
|
|
PUSHBUTTON "< Back",IDC_BACK,129,163,50,14
|
|
LTEXT "You have set your security level to medium.",
|
|
IDC_STATIC2,102,9,166,18
|
|
CONTROL 125,IDC_STATIC3,"Static",SS_BITMAP | SS_SUNKEN,9,9,80,
|
|
139
|
|
LTEXT "A dialog will prompt for your permission when this item is to be used.",
|
|
IDC_STATIC4,102,27,166,23
|
|
END
|
|
|
|
IDD_ADVANCED_CONFIRM_L DIALOG DISCARDABLE 0, 0, 294, 186
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Protected Storage"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
PUSHBUTTON "&Finish",IDOK,179,163,50,14
|
|
PUSHBUTTON "Cancel",IDCANCEL,235,163,50,14
|
|
CONTROL "",IDC_STATIC1,"Static",SS_BLACKFRAME | SS_SUNKEN,9,155,
|
|
276,1
|
|
PUSHBUTTON "< Back",IDC_BACK,129,163,50,14
|
|
LTEXT "WARNING: You have set your security level to low.",
|
|
IDC_STATIC2,102,9,177,18
|
|
CONTROL 136,IDC_STATIC3,"Static",SS_BITMAP | SS_SUNKEN,9,9,81,
|
|
140
|
|
LTEXT "This will automatically grant applications permission to use this item without notification.",
|
|
IDC_STATIC4,102,27,177,30
|
|
END
|
|
|
|
IDD_SecPass_WinNT DIALOG DISCARDABLE 0, 0, 254, 153
|
|
STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP | WS_CAPTION |
|
|
WS_SYSMENU
|
|
CAPTION "Protected Storage"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
EDITTEXT IDC_EDIT0,161,72,84,12,ES_PASSWORD | ES_AUTOHSCROLL
|
|
PUSHBUTTON "OK",IDOK,141,130,50,14
|
|
PUSHBUTTON "Cancel",IDCANCEL,195,130,50,14
|
|
LTEXT "Protected Storage uses your Windows password to protect your personal data. Protected Storage has detected a password change.",
|
|
IDC_MAIN_CAPTION,63,9,168,34
|
|
LTEXT "To enable Protected Storage, you must enter your previous Windows password below.",
|
|
IDC_MAIN_CAPTION2,63,45,172,18
|
|
LTEXT "Previous Windows password:",IDC_MAIN_CAPTION4,63,72,95,
|
|
8
|
|
CONTROL 129,IDC_STATIC5,"Static",SS_BITMAP, 9,9,43,135
|
|
END
|
|
|
|
IDD_PASSWORD_CHANGE DIALOG DISCARDABLE 0, 0, 254, 153
|
|
STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP | WS_CAPTION |
|
|
WS_SYSMENU
|
|
CAPTION "Protected Storage"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
PUSHBUTTON "OK",IDOK,141,130,50,14
|
|
PUSHBUTTON "Cancel",IDCANCEL,195,130,50,14
|
|
COMBOBOX IDC_PW_NAME,151,46,85,37,CBS_DROPDOWNLIST | WS_VSCROLL |
|
|
WS_TABSTOP
|
|
EDITTEXT IDC_EDIT0,151,72,85,12,ES_PASSWORD | ES_AUTOHSCROLL
|
|
EDITTEXT IDC_EDIT1,152,89,84,12,ES_PASSWORD | ES_AUTOHSCROLL
|
|
EDITTEXT IDC_EDIT2,152,106,84,12,ES_PASSWORD | ES_AUTOHSCROLL
|
|
CONTROL 129,IDC_STATIC5,"Static",SS_BITMAP, 9,9,43,135
|
|
LTEXT "&Change password for: ",IDC_STATIC3,63,48,72,8
|
|
LTEXT "Cu&rrent password:",IDC_STATIC2,64,74,68,9
|
|
LTEXT "&New Password:",IDC_LABEL_EDIT1,64,91,68,9
|
|
LTEXT "Confir&m:",IDC_LABEL_EDIT2,64,108,79,9
|
|
LTEXT "",IDC_MESSAGE,63,9,182,26
|
|
END
|
|
|
|
IDD_SIMPLIFIED_PASSWD DIALOG DISCARDABLE 0, 0, 254, 153
|
|
STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP | WS_CAPTION |
|
|
WS_SYSMENU
|
|
CAPTION "Protected Storage"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
EDITTEXT IDC_EDIT1,156,70,80,12,ES_PASSWORD | ES_AUTOHSCROLL
|
|
CONTROL "&Remember password",IDC_CACHEPW,"Button",
|
|
BS_AUTOCHECKBOX | WS_TABSTOP,156,84,82,10
|
|
PUSHBUTTON "OK",IDOK,87,130,50,14
|
|
PUSHBUTTON "Cancel",IDCANCEL,141,130,50,14
|
|
PUSHBUTTON "Set &Security Level...",IDC_CHANGE_SECURITY,164,106,81,
|
|
14
|
|
PUSHBUTTON "&Details...",IDC_ADVANCED,195,130,50,14
|
|
EDITTEXT IDC_APP_MSG,63,9,182,55,ES_MULTILINE | ES_AUTOVSCROLL |
|
|
ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP
|
|
LTEXT "Security level set to ",IDC_SEC_PREFIX,63,107,66,18
|
|
CONTROL 129,IDC_SEC_PREFIX,"Static",SS_BITMAP, 9,9,43,135
|
|
EDITTEXT IDC_MESSAGE,93,51,129,12,ES_AUTOHSCROLL | ES_READONLY |
|
|
NOT WS_VISIBLE | NOT WS_BORDER | NOT WS_TABSTOP
|
|
ICON "",IDC_ICONBOX,63,41,21,20,NOT WS_VISIBLE
|
|
LTEXT "High",IDC_SEC_LEVEL,129,107,31,8
|
|
EDITTEXT IDC_LABEL_EDIT1,63,73,84,12,ES_AUTOHSCROLL | ES_READONLY |
|
|
NOT WS_BORDER
|
|
END
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Icon
|
|
//
|
|
|
|
// Icon with lowest ID value placed first to ensure application icon
|
|
// remains consistent on all systems.
|
|
IDI_ICON1 ICON DISCARDABLE "icon1.ico"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Bitmap
|
|
//
|
|
|
|
IDB_BITMAP_LOCKKEY BITMAP DISCARDABLE "wmark.BMP"
|
|
IDB_BITMAP_BLANK BITMAP DISCARDABLE "user.BMP"
|
|
IDB_BITMAP_ALERT BITMAP DISCARDABLE "unsigned.bmp"
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// String Table
|
|
//
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
BEGIN
|
|
IDS_PASSWORD_CREATE_MESSAGE
|
|
"Define a password that you may use to protect your private data items."
|
|
IDS_PASSWORD_NOMATCH "The passwords you entered were different. Please re-enter."
|
|
IDS_PASSWORD_CHANGE_MESSAGE
|
|
"Protected Storage has been asked to change your password. Enter your existing password below, then enter a new password."
|
|
IDS_PASSWORD_MUSTNAME "You must give this password a name."
|
|
IDS_PASSWORD_CHANGE_REQ
|
|
"Protected Storage has detected a password change. To change the password, please respond to the questions below."
|
|
IDS_PASSWORD_DUPLICATE "This password name is already in use. Please choose another."
|
|
IDS_PASSWORD_ADD_ERROR "Protected Storage could not add your password."
|
|
IDS_PASSWORD_ERROR_DLGTITLE "Password Error"
|
|
IDS_PROMPT_READITEM "Read"
|
|
IDS_PROMPT_WRITEITEM "Write"
|
|
IDS_PROMPT_DELETEITEM "Delete"
|
|
IDS_PASSWORD_CHANGE_ERROR
|
|
"Protected Storage could not change your password."
|
|
IDS_PASSWORD_SOLICIT_OLD_MESSAGE
|
|
"Before changing the security on this item, it must first be unlocked. Please enter the password protecting this item."
|
|
END
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
BEGIN
|
|
IDS_PASSWORD_PROMPT_PREFIX "Password for "
|
|
IDS_PASSWORD_PROMPT_SUFFIX ":"
|
|
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."
|
|
IDS_PROMPT_OPENITEM "Opening an item for multiple accesses"
|
|
IDS_WIN95_PASSWORDS_AREGARBAGE
|
|
"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."
|
|
IDS_SIMPLIFIED_DLG_MSG "The application""%ls"" has requested permission to use the item ""%ls."""
|
|
END
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
BEGIN
|
|
IDS_PROMPT_HIGH_SECURITY "High"
|
|
IDS_PROMPT_MED_SECURITY "Medium"
|
|
IDS_PROMPT_LOW_SECURITY "Low"
|
|
END
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
BEGIN
|
|
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. "
|
|
IDS_PASSWORD_WIN_NOVERIFY
|
|
"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."
|
|
END
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
BEGIN
|
|
IDS_TITLE_CONTAINER_MAPPING
|
|
"Private Key Container"
|
|
IDS_WINDOWS_NT_SECURITY_ALERT
|
|
"Windows Security Alert"
|
|
END
|