[ZIPFLDR_APITEST] Add some basic IDataObject tests

CORE-16241
This commit is contained in:
Mark Jansen 2020-01-04 17:49:02 +01:00
parent 534710a6d5
commit 0340c5188c
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B
11 changed files with 915 additions and 0 deletions

View file

@ -0,0 +1,32 @@
#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"
BOOL extract_resource(WCHAR* Filename, LPCWSTR ResourceName);
#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);
#endif /* _ZIPFLDR_APITEST_PRECOMP_H_ */