#pragma once #define COM_NO_WINDOWS_H #define RPC_NO_WINDOWS_H #define NOCOMM #define NOCRYPT #define NOIME #define NOMCX #define NOMDI #define NOMETAFILE #define NOSOUND #define NOWH #define NOWINABLE #define NOWINRES #include #include #include #include #include #include #include #include #include #include #include #include #include // must come before shlguid.h #include #include #include #include #include // Fusion support #include "shfusion.h" #include "ncmem.h" #include "ncstl.h" #include "algorithm" #include "list" #include "map" #include "set" #include "vector" using namespace std; #include "ncbase.h" #include "ncdebug.h" #include "ncdefine.h" #include "ncexcept.h" #include "naming.h" // This avoids duplicate definitions with Shell PIDL functions // and MUST BE DEFINED! #define AVOID_NET_CONFIG_DUPLICATES #define DONT_WANT_SHELLDEBUG 1 #define NO_SHIDLIST 1 #define USE_SHLWAPI_IDLIST #include #include #include #include #include #include #include #include #include #include #include "nceh.h" #define LoadIconSize(hInstance, lpszName, dwSize) \ reinterpret_cast(LoadImage(hInstance, lpszName, IMAGE_ICON, dwSize, dwSize, LR_DEFAULTCOLOR)) #define LoadIconSmall(hInstance, lpszName) \ LoadIconSize(hInstance, lpszName, 16) #define LoadIconNormal(hInstance, lpszName) \ LoadIconSize(hInstance, lpszName, 32) #define LoadIconTile(hInstance, lpszName) \ LoadIconSize(hInstance, lpszName, 48) #ifdef ENABLELEAKDETECTION #include "nsbase.h" template class CComObjectRootExDbg : public CComObjectRootEx, public CNetCfgDebug { public: void FinalRelease() { CComObjectRootEx::FinalRelease(); // ISSUE_knownleak(this); } }; #define CComObjectRootEx CComObjectRootExDbg class CComObjectRootDbg : public CNetCfgDebug, public CComObjectRoot { }; #define CComObjectRoot CComObjectRootDbg #endif