Index: dll/win32/shell32/COpenWithMenu.cpp =================================================================== --- dll/win32/shell32/COpenWithMenu.cpp (revision 65618) +++ dll/win32/shell32/COpenWithMenu.cpp (working copy) @@ -57,6 +57,7 @@ static HICON GetIcon(SApp *pApp); static BOOL Execute(SApp *pApp, LPCWSTR pwszFilePath); static BOOL IsHidden(SApp *pApp); + inline BOOL IsNoOpen(VOID) { return m_bNoOpen; } BOOL LoadRecommended(LPCWSTR pwszFilePath); BOOL SetDefaultHandler(SApp *pApp, LPCWSTR pwszFilename); @@ -775,6 +776,7 @@ COpenWithDialog(const OPENASINFO *pInfo, COpenWithList *pAppList); ~COpenWithDialog(); static INT_PTR CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); + BOOL IsNoOpen(HWND hwnd); private: VOID Init(HWND hwnd); @@ -781,6 +783,7 @@ VOID AddApp(COpenWithList::SApp *pApp, BOOL bSelected); VOID Browse(); VOID Accept(); + static BOOL CALLBACK NoOpenDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam); COpenWithList::SApp *GetCurrentApp(); const OPENASINFO *m_pInfo; @@ -790,10 +793,11 @@ HTREEITEM m_hRecommend; HTREEITEM m_hOther; HIMAGELIST m_hImgList; + BOOL m_bNoOpen; }; COpenWithDialog::COpenWithDialog(const OPENASINFO *pInfo, COpenWithList *pAppList = NULL): - m_pInfo(pInfo), m_pAppList(pAppList), m_hImgList(NULL) + m_pInfo(pInfo), m_pAppList(pAppList), m_hImgList(NULL), m_bNoOpen(FALSE) { if (!m_pAppList) { @@ -812,6 +816,53 @@ ImageList_Destroy(m_hImgList); } +BOOL CALLBACK COpenWithDialog::NoOpenDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) +{ + switch(Message) + { + case WM_INITDIALOG: + { + return TRUE; + } + case WM_CLOSE: + EndDialog(hwnd, IDNO); + break; + case WM_COMMAND: + switch(LOWORD(wParam)) + { + case IDYES: + EndDialog(hwnd, IDYES); + break; + case IDNO: + EndDialog(hwnd, IDNO); + break; + } + break; + default: + return FALSE; + } + return TRUE; +} + +BOOL COpenWithDialog::IsNoOpen(HWND hwnd) +{ + /* Only do the actual check if the file type has the 'NoOpen' flag. */ + if (m_bNoOpen) + { + int dReturnValue = DialogBox(shell32_hInstance, MAKEINTRESOURCE(IDD_NOOPEN), hwnd, NoOpenDlgProc); + + if (dReturnValue == IDNO) + return TRUE; + else if (dReturnValue == -1) + { + ERR("IsNoOpen failed to load the dialog box."); + return TRUE; + } + } + + return FALSE; +} + VOID COpenWithDialog::AddApp(COpenWithList::SApp *pApp, BOOL bSelected) { LPCWSTR pwszName = m_pAppList->GetName(pApp); @@ -924,6 +975,10 @@ m_pAppList->Load(); m_pAppList->LoadRecommended(m_pInfo->pcszFile); + /* Determine if the type of file can be opened directly from the shell */ + if (m_pAppList->IsNoOpen() == TRUE) + m_bNoOpen = TRUE; + /* Init treeview */ m_hTreeView = GetDlgItem(hwnd, 14002); m_hImgList = ImageList_Create(16, 16, 0, m_pAppList->GetCount() + 1, m_pAppList->GetCount() + 1); @@ -1395,6 +1450,9 @@ return E_FAIL; } + if (pDialog.IsNoOpen(hwndParent)) + return S_OK; + ShowWindow(hwnd, SW_SHOWNORMAL); while (GetMessage(&msg, NULL, 0, 0) && IsWindow(hwnd)) Index: dll/win32/shell32/lang/bg-BG.rc =================================================================== --- dll/win32/shell32/lang/bg-BG.rc (revision 65618) +++ dll/win32/shell32/lang/bg-BG.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Отказ", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/ca-ES.rc =================================================================== --- dll/win32/shell32/lang/ca-ES.rc (revision 65618) +++ dll/win32/shell32/lang/ca-ES.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Cancel", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/cs-CZ.rc =================================================================== --- dll/win32/shell32/lang/cs-CZ.rc (revision 65618) +++ dll/win32/shell32/lang/cs-CZ.rc (working copy) @@ -612,6 +612,20 @@ PUSHBUTTON "Storno", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/da-DK.rc =================================================================== --- dll/win32/shell32/lang/da-DK.rc (revision 65618) +++ dll/win32/shell32/lang/da-DK.rc (working copy) @@ -612,6 +612,20 @@ PUSHBUTTON "Cancel", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/de-DE.rc =================================================================== --- dll/win32/shell32/lang/de-DE.rc (revision 65618) +++ dll/win32/shell32/lang/de-DE.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Abbrechen", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/el-GR.rc =================================================================== --- dll/win32/shell32/lang/el-GR.rc (revision 65618) +++ dll/win32/shell32/lang/el-GR.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Cancel", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/en-GB.rc =================================================================== --- dll/win32/shell32/lang/en-GB.rc (revision 65618) +++ dll/win32/shell32/lang/en-GB.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Cancel", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/en-US.rc =================================================================== --- dll/win32/shell32/lang/en-US.rc (revision 65618) +++ dll/win32/shell32/lang/en-US.rc (working copy) @@ -623,6 +623,20 @@ PUSHBUTTON "Cancel", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/es-ES.rc =================================================================== --- dll/win32/shell32/lang/es-ES.rc (revision 65618) +++ dll/win32/shell32/lang/es-ES.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Cancelar", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/fi-FI.rc =================================================================== --- dll/win32/shell32/lang/fi-FI.rc (revision 65618) +++ dll/win32/shell32/lang/fi-FI.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Cancel", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/fr-FR.rc =================================================================== --- dll/win32/shell32/lang/fr-FR.rc (revision 65618) +++ dll/win32/shell32/lang/fr-FR.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Annuler", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/he-IL.rc =================================================================== --- dll/win32/shell32/lang/he-IL.rc (revision 65618) +++ dll/win32/shell32/lang/he-IL.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Cancel", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/hu-HU.rc =================================================================== --- dll/win32/shell32/lang/hu-HU.rc (revision 65618) +++ dll/win32/shell32/lang/hu-HU.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Cancel", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/it-IT.rc =================================================================== --- dll/win32/shell32/lang/it-IT.rc (revision 65618) +++ dll/win32/shell32/lang/it-IT.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Annulla", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/ja-JP.rc =================================================================== --- dll/win32/shell32/lang/ja-JP.rc (revision 65618) +++ dll/win32/shell32/lang/ja-JP.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "キャンセル", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 9, "MS UI Gothic" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/ko-KR.rc =================================================================== --- dll/win32/shell32/lang/ko-KR.rc (revision 65618) +++ dll/win32/shell32/lang/ko-KR.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Cancel", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/nl-NL.rc =================================================================== --- dll/win32/shell32/lang/nl-NL.rc (revision 65618) +++ dll/win32/shell32/lang/nl-NL.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Cancel", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/no-NO.rc =================================================================== --- dll/win32/shell32/lang/no-NO.rc (revision 65618) +++ dll/win32/shell32/lang/no-NO.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Avbryt", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/pl-PL.rc =================================================================== --- dll/win32/shell32/lang/pl-PL.rc (revision 65618) +++ dll/win32/shell32/lang/pl-PL.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Anuluj", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/pt-BR.rc =================================================================== --- dll/win32/shell32/lang/pt-BR.rc (revision 65618) +++ dll/win32/shell32/lang/pt-BR.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Cancelar", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/pt-PT.rc =================================================================== --- dll/win32/shell32/lang/pt-PT.rc (revision 65618) +++ dll/win32/shell32/lang/pt-PT.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Cancelar", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/ro-RO.rc =================================================================== --- dll/win32/shell32/lang/ro-RO.rc (revision 65618) +++ dll/win32/shell32/lang/ro-RO.rc (working copy) @@ -608,6 +608,34 @@ PUSHBUTTON "A&nulează", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/ru-RU.rc =================================================================== --- dll/win32/shell32/lang/ru-RU.rc (revision 65618) +++ dll/win32/shell32/lang/ru-RU.rc (working copy) @@ -608,6 +608,20 @@ PUSHBUTTON "Отмена",IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/sk-SK.rc =================================================================== --- dll/win32/shell32/lang/sk-SK.rc (revision 65618) +++ dll/win32/shell32/lang/sk-SK.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Zrušiť", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/sl-SI.rc =================================================================== --- dll/win32/shell32/lang/sl-SI.rc (revision 65618) +++ dll/win32/shell32/lang/sl-SI.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Cancel", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/sq-AL.rc =================================================================== --- dll/win32/shell32/lang/sq-AL.rc (revision 65618) +++ dll/win32/shell32/lang/sq-AL.rc (working copy) @@ -610,6 +610,20 @@ PUSHBUTTON "Anulo", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/sv-SE.rc =================================================================== --- dll/win32/shell32/lang/sv-SE.rc (revision 65618) +++ dll/win32/shell32/lang/sv-SE.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Cancel", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/tr-TR.rc =================================================================== --- dll/win32/shell32/lang/tr-TR.rc (revision 65618) +++ dll/win32/shell32/lang/tr-TR.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "İptal", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/uk-UA.rc =================================================================== --- dll/win32/shell32/lang/uk-UA.rc (revision 65618) +++ dll/win32/shell32/lang/uk-UA.rc (working copy) @@ -606,6 +606,20 @@ PUSHBUTTON "Скасувати", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/zh-CN.rc =================================================================== --- dll/win32/shell32/lang/zh-CN.rc (revision 65618) +++ dll/win32/shell32/lang/zh-CN.rc (working copy) @@ -615,6 +615,20 @@ PUSHBUTTON "取消", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/lang/zh-TW.rc =================================================================== --- dll/win32/shell32/lang/zh-TW.rc (revision 65618) +++ dll/win32/shell32/lang/zh-TW.rc (working copy) @@ -614,6 +614,20 @@ PUSHBUTTON "Cancel", IDCANCEL, 167, 181, 50, 14 END +IDD_NOOPEN DIALOGEX 0, 0, 240, 75 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Caution" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_SHELL_DOCUMENT, IDI_SHELL_DOCUMENT, 5, 5, 21, 20 + LTEXT "This file could either be used by the operating system or by\n\ +another application. Modifying this file might damage your\n\ +system or make it less functional.\n\n\ +Are you sure you want to open this file?", IDC_STATIC, 35, 5, 230, 60 + DEFPUSHBUTTON "Yes", IDYES, 125, 55, 50, 14 + PUSHBUTTON "No", IDNO, 180, 55, 50, 14 +END + STRINGTABLE BEGIN /* columns in the shellview */ Index: dll/win32/shell32/shresdef.h =================================================================== --- dll/win32/shell32/shresdef.h (revision 65618) +++ dll/win32/shell32/shresdef.h (working copy) @@ -288,6 +288,7 @@ #define IDD_OPEN_WITH 24 #define IDD_FORMAT_DRIVE 25 #define IDD_CHECK_DISK 26 +#define IDD_NOOPEN 27 /* Not used dialogs */ #define IDD_FILE_COPY 27 Index: boot/bootdata/hivecls.inf =================================================================== --- boot/bootdata/hivecls.inf (revision 65613) +++ boot/bootdata/hivecls.inf (working copy) @@ -37,6 +37,7 @@ HKCR,".386","",0x00000000,"vxdfile" HKCR,".vxd","",0x00000000,"vxdfile" HKCR,"vxdfile","",0x00000000,"Virtual Device Driver" +HKCR,"vxdfile","NoOpen",0x00000000,"" HKCR,"vxdfile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\shell32.dll,-157" ; Animated Cursors @@ -86,6 +87,7 @@ ; Dynamic Link Libraries HKCR,".dll","",0x00000000,"dllfile" HKCR,"dllfile","",0x00000000,"Dynamic Link Library" +HKCR,"dllfile","NoOpen",0x00000000,"" HKCR,"dllfile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\shell32.dll,-163" HKCR,"dllfile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-154" @@ -260,6 +262,7 @@ ; System-Files HKCR,".sys","",0x00000000,"sysfile" HKCR,"sysfile","",0x00000000,"System File" +HKCR,"sysfile","NoOpen",0x00000000,"" HKCR,"regfile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\shell32.dll,-171" HKCR,"sysfile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-154"