1 #ifndef _ZIPFLDR_APITEST_PRECOMP_H_ 2 #define _ZIPFLDR_APITEST_PRECOMP_H_ 3 4 #define WIN32_NO_STATUS 5 #define _INC_WINDOWS 6 #define COM_NO_WINDOWS_H 7 8 9 #include <windef.h> 10 #include <winbase.h> 11 #include <shlobj.h> 12 #include <atlbase.h> 13 #include <atlcom.h> // gcc needs to resolve unused template content 14 #include <shellapi.h> 15 #include <shlwapi.h> 16 #include <strsafe.h> 17 18 #include <shellutils.h> 19 20 #include <apitest.h> 21 22 #include "resource.h" 23 24 BOOL extract_resource(WCHAR* Filename, LPCWSTR ResourceName, WCHAR* ParentFolder); 25 #define InitializeShellFolder(Filename, pFolder) InitializeShellFolder_(__FILE__, __LINE__, Filename, pFolder) 26 bool InitializeShellFolder_(const char* file, int line, const WCHAR* Filename, CComPtr<IShellFolder>& spFolder); 27 28 #define IsFormatAdvertised(pDataObj, cfFormat, tymed) IsFormatAdvertised_(__FILE__, __LINE__, pDataObj, cfFormat, tymed) 29 bool IsFormatAdvertised_(const char* file, int line, IDataObject* pDataObj, CLIPFORMAT cfFormat, TYMED tymed); 30 31 #define ok_displayname(pFolder, pidl, Flags, Name) ok_displayname_(__FILE__, __LINE__, pFolder, pidl, Flags, Name) 32 void ok_displayname_(const char* file, int line, IShellFolder* pFolder, PCUITEMID_CHILD pidl, SHGDNF Flags, LPCWSTR Name); 33 34 #endif /* _ZIPFLDR_APITEST_PRECOMP_H_ */ 35