#include "shelltest.h"
#include <debug.h>
#include <stdio.h>
#include <shellutils.h>
Go to the source code of this file.
◆ INVALID_POINTER
◆ NDEBUG
◆ START_TEST()
START_TEST |
( |
CMyComputer |
| ) |
|
Definition at line 75 of file CMyComputer.cpp.
76{
78 CComPtr<IShellFolder2> psf2;
79 CComPtr<IShellFolder2> psf2_2;
80 CComPtr<IShellFolder> psf;
81
83
86 CLSCTX_INPROC_SERVER,
90 {
91 skip(
"Could not instantiate CShellDesktop\n");
92 return;
93 }
94
95
98 CLSCTX_INPROC_SERVER,
101 ok(psf2 == psf2_2,
"Expected %p == %p\n",
static_cast<PVOID>(psf2),
static_cast<PVOID>(psf2_2));
102
105}
static VOID TestShellFolder(_In_ IShellFolder2 *psf2)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI DECLSPEC_HOTPATCH CoInitializeEx(LPVOID lpReserved, DWORD dwCoInit)
@ COINIT_APARTMENTTHREADED
#define IID_PPV_ARG(Itype, ppType)
◆ TestInitialize()
Definition at line 52 of file CMyComputer.cpp.
53{
54 CComPtr<IPersistFolder2> ppf2;
57
58 hr = ppf2->Initialize(
NULL);
60
63
64
65
66
67
68 CComHeapPtr<ITEMIDLIST> pidl;
69 hr = ppf2->GetCurFolder(&pidl);
71
72 ok(pidl->mkid.cb == 0x14,
"expected empty pidl got cb = %x\n", pidl->mkid.cb);
73}
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
◆ TestShellFolder()
Definition at line 19 of file CMyComputer.cpp.
21{
23 CComPtr<IDropTarget> pdt;
24 CComPtr<IDropTarget> pdt_2;
25 CComPtr<IContextMenu> pcm;
26 CComPtr<IContextMenu> pcm_2;
27 CComPtr<IShellView> psv;
28 CComPtr<IShellView> psv_2;
29
32
35 ok(pdt != pdt_2,
"Expected %p != %p\n",
static_cast<PVOID>(pdt),
static_cast<PVOID>(pdt_2));
36
39
42 ok(pcm != pcm_2,
"Expected %p != %p\n",
static_cast<PVOID>(pcm),
static_cast<PVOID>(pcm_2));
43
46
49 ok(psv != psv_2,
"Expected %p != %p\n",
static_cast<PVOID>(psv),
static_cast<PVOID>(psv_2));
50}
Referenced by START_TEST().