#include <windef.h>
#include <winbase.h>
#include <shlobj.h>
#include <atlbase.h>
#include <atlcom.h>
#include <shellapi.h>
#include <shlwapi.h>
#include <strsafe.h>
#include <shellutils.h>
#include <apitest.h>
#include "resource.h"
Go to the source code of this file.
|
#define | WIN32_NO_STATUS |
|
#define | _INC_WINDOWS |
|
#define | COM_NO_WINDOWS_H |
|
#define | InitializeShellFolder(Filename, pFolder) InitializeShellFolder_(__FILE__, __LINE__, Filename, pFolder) |
|
#define | IsFormatAdvertised(pDataObj, cfFormat, tymed) IsFormatAdvertised_(__FILE__, __LINE__, pDataObj, cfFormat, tymed) |
|
#define | ok_displayname(pFolder, pidl, Flags, Name) ok_displayname_(__FILE__, __LINE__, pFolder, pidl, Flags, Name) |
|
|
BOOL | extract_resource (WCHAR *Filename, LPCWSTR ResourceName, WCHAR *ParentFolder) |
|
bool | InitializeShellFolder_ (const char *file, int line, const WCHAR *Filename, CComPtr< IShellFolder > &spFolder) |
|
bool | IsFormatAdvertised_ (const char *file, int line, IDataObject *pDataObj, CLIPFORMAT cfFormat, TYMED tymed) |
|
void | ok_displayname_ (const char *file, int line, IShellFolder *pFolder, PCUITEMID_CHILD pidl, SHGDNF Flags, LPCWSTR Name) |
|
◆ _INC_WINDOWS
◆ COM_NO_WINDOWS_H
◆ InitializeShellFolder
◆ IsFormatAdvertised
◆ ok_displayname
◆ WIN32_NO_STATUS
◆ extract_resource()
Definition at line 39 of file IDataObject.cpp.
40{
42 UINT TickMask = 0xffff;
43 if (!ParentFolder)
44 {
47 }
48 else
49 {
50
51 TickMask = 0;
52 }
54
58 if (!hRsrc)
60
64
68
71 return Written;
72}
static BOOL write_raw_file(const WCHAR *FileName, const void *Data, DWORD Size)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
DWORD WINAPI GetTempPathW(IN DWORD count, OUT LPWSTR path)
DWORD WINAPI GetTickCount(VOID)
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
DWORD WINAPI SizeofResource(HINSTANCE hModule, HRSRC hRsrc)
LPVOID WINAPI LockResource(HGLOBAL handle)
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
IN PVCB IN PBCB OUT PDIRENT IN USHORT IN POEM_STRING Filename
static char workdir[MAX_PATH]
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
#define UnlockResource(handle)
#define MAKEINTRESOURCEW(i)
Referenced by START_TEST().
◆ InitializeShellFolder_()
Definition at line 74 of file IDataObject.cpp.
75{
76 CComHeapPtr<ITEMIDLIST_ABSOLUTE> pidl;
80 return false;
81
82 CComPtr<IShellFolder> spParent;
86 return false;
87
89
91}
#define ok_hr_(file, line, status, expected)
HRESULT WINAPI SHParseDisplayName(LPCWSTR pszName, IBindCtx *pbc, LPITEMIDLIST *ppidl, SFGAOF sfgaoIn, SFGAOF *psfgaoOut)
HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast)
const ITEMIDLIST_RELATIVE UNALIGNED * PCUIDLIST_RELATIVE
#define IID_PPV_ARG(Itype, ppType)
◆ IsFormatAdvertised_()
Definition at line 114 of file IDataObject.cpp.
115{
116 CComPtr<IEnumFORMATETC> pEnumFmt;
118
121 return false;
122
125 {
126 if (
fmt.cfFormat == cfFormat)
127 {
131 return true;
132 }
133 }
135 return false;
136}
#define ok_hex_(expression, result)
HRESULT EnumFormatEtc([in] DWORD dwDirection, [out] IEnumFORMATETC **ppenumFormatEtc)
◆ ok_displayname_()
Definition at line 12 of file EnumObjects.cpp.
13{
16
20 return;
21
26 return;
27
29}
HRESULT WINAPI StrRetToBufW(LPSTRRET src, const ITEMIDLIST *pidl, LPWSTR dest, UINT len)
HRESULT GetDisplayNameOf([in] PCUITEMID_CHILD pidl, [in] SHGDNF uFlags, [out] STRRET *lpName)
#define ok_wstr_(file, line, x, y)
_Must_inspect_result_ _In_ ULONG Flags