2020-01-04 16:49:02 +00:00
|
|
|
#ifndef _ZIPFLDR_APITEST_PRECOMP_H_
|
|
|
|
#define _ZIPFLDR_APITEST_PRECOMP_H_
|
|
|
|
|
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <shlobj.h>
|
|
|
|
#include <atlbase.h>
|
|
|
|
#include <atlcom.h> // gcc needs to resolve unused template content
|
|
|
|
#include <shellapi.h>
|
|
|
|
#include <shlwapi.h>
|
|
|
|
#include <strsafe.h>
|
|
|
|
|
|
|
|
#include <shellutils.h>
|
|
|
|
|
|
|
|
#include <apitest.h>
|
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
2020-04-22 18:47:00 +00:00
|
|
|
BOOL extract_resource(WCHAR* Filename, LPCWSTR ResourceName, WCHAR* ParentFolder);
|
2020-01-04 16:49:02 +00:00
|
|
|
#define InitializeShellFolder(Filename, pFolder) InitializeShellFolder_(__FILE__, __LINE__, Filename, pFolder)
|
|
|
|
bool InitializeShellFolder_(const char* file, int line, const WCHAR* Filename, CComPtr<IShellFolder>& spFolder);
|
|
|
|
|
|
|
|
#define IsFormatAdvertised(pDataObj, cfFormat, tymed) IsFormatAdvertised_(__FILE__, __LINE__, pDataObj, cfFormat, tymed)
|
|
|
|
bool IsFormatAdvertised_(const char* file, int line, IDataObject* pDataObj, CLIPFORMAT cfFormat, TYMED tymed);
|
|
|
|
|
2020-04-22 18:47:00 +00:00
|
|
|
#define ok_displayname(pFolder, pidl, Flags, Name) ok_displayname_(__FILE__, __LINE__, pFolder, pidl, Flags, Name)
|
|
|
|
void ok_displayname_(const char* file, int line, IShellFolder* pFolder, PCUITEMID_CHILD pidl, SHGDNF Flags, LPCWSTR Name);
|
2020-01-04 16:49:02 +00:00
|
|
|
|
|
|
|
#endif /* _ZIPFLDR_APITEST_PRECOMP_H_ */
|