diff options
author | George Hazan <ghazan@miranda.im> | 2021-03-28 20:38:45 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-03-28 20:38:45 +0300 |
commit | 0eee94c3a780e0e9f87b26145b557a99e84d25e0 (patch) | |
tree | 58287520f0c2284550764d5f66bbf0b7e5ded155 /plugins/AssocMgr/src | |
parent | 96171674a3c346419d490705d4e3b4e53d2f8ae4 (diff) |
21 years after Win2k release we don't need win2k.h - everything we need is included into minimum Windows SDK 7.1
Diffstat (limited to 'plugins/AssocMgr/src')
-rw-r--r-- | plugins/AssocMgr/src/reg.cpp | 28 | ||||
-rw-r--r-- | plugins/AssocMgr/src/stdafx.h | 1 |
2 files changed, 26 insertions, 3 deletions
diff --git a/plugins/AssocMgr/src/reg.cpp b/plugins/AssocMgr/src/reg.cpp index 82f19f5040..fda90a497c 100644 --- a/plugins/AssocMgr/src/reg.cpp +++ b/plugins/AssocMgr/src/reg.cpp @@ -21,6 +21,30 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h"
+#ifndef FILETYPEATTRIBUTEFLAGS
+ #define FTA_Exclude 0x00000001
+ #define FTA_Show 0x00000002
+ #define FTA_HasExtension 0x00000004
+ #define FTA_NoEdit 0x00000008
+ #define FTA_NoRemove 0x00000010
+ #define FTA_NoNewVerb 0x00000020
+ #define FTA_NoEditVerb 0x00000040
+ #define FTA_NoRemoveVerb 0x00000080
+ #define FTA_NoEditDesc 0x00000100
+ #define FTA_NoEditIcon 0x00000200
+ #define FTA_NoEditDflt 0x00000400
+ #define FTA_NoEditVerbCmd 0x00000800
+ #define FTA_NoEditVerbExe 0x00001000
+ #define FTA_NoDDE 0x00002000
+ #define FTA_NoEditMIME 0x00008000
+ #define FTA_OpenIsSafe 0x00010000
+ #define FTA_AlwaysUnsafe 0x00020000
+ #define FTA_AlwaysShowExt 0x00040000
+ #define FTA_NoRecentDocs 0x00100000
+ #define FTA_SafeForElevation 0x00200000
+ #define FTA_AlwaysUseDirectInvoke 0x00400000
+#endif /* FTA_Exclude */
+
#ifdef _DEBUG
// Debug: Ensure all registry calls do succeed and have valid parameters.
// Shows a details message box otherwise.
@@ -604,9 +628,9 @@ BOOL AddRegClass(const char *pszClassName, const wchar_t *pszTypeDescription, co {
DWORD dwFlags = 0, dwSize = sizeof(dwFlags);
RegQueryValueEx(hClassKey, L"EditFlags", nullptr, nullptr, (BYTE*)&dwFlags, &dwSize);
- if (fBrowserAutoOpen) dwFlags = (dwFlags&~FTA_AlwaysUnsafe) | FTA_OpenIsSafe;
+ if (fBrowserAutoOpen) dwFlags = (dwFlags & ~FTA_AlwaysUnsafe) | FTA_OpenIsSafe;
if (!fUrlProto) dwFlags |= FTA_HasExtension;
- else dwFlags = (dwFlags&~FTA_HasExtension) | FTA_Show; // show classes without extension
+ else dwFlags = (dwFlags & ~FTA_HasExtension) | FTA_Show; // show classes without extension
RegSetValueEx(hClassKey, L"EditFlags", 0, REG_DWORD, (BYTE*)&dwFlags, sizeof(dwFlags));
}
if (fIsShortcut) {
diff --git a/plugins/AssocMgr/src/stdafx.h b/plugins/AssocMgr/src/stdafx.h index 09096de40b..e4f910ac70 100644 --- a/plugins/AssocMgr/src/stdafx.h +++ b/plugins/AssocMgr/src/stdafx.h @@ -35,7 +35,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include <m_options.h>
#include <m_clist.h>
#include <m_gui.h>
-#include "win2k.h"
#include "m_assocmgr.h"
|