ReactOS 0.4.15-dev-7887-g64a59a1
IACLHistory.cpp File Reference
#include <apitest.h>
#include <shlobj.h>
#include <atlbase.h>
#include <atlcom.h>
#include <stdio.h>
#include <shellutils.h>
Include dependency graph for IACLHistory.cpp:

Go to the source code of this file.

Macros

#define _UNICODE
 
#define UNICODE
 

Functions

 START_TEST (IACLHistory)
 

Macro Definition Documentation

◆ _UNICODE

#define _UNICODE

Definition at line 8 of file IACLHistory.cpp.

◆ UNICODE

Definition at line 9 of file IACLHistory.cpp.

Function Documentation

◆ START_TEST()

START_TEST ( IACLHistory  )

Definition at line 17 of file IACLHistory.cpp.

18{
19 CCoInit init;
20 ok_hex(init.hr, S_OK);
21 if (FAILED(init.hr))
22 {
23 skip("CoInitialize failed with 0x%08lX\n", init.hr);
24 return;
25 }
26
27 HRESULT hr;
28 CComPtr<IUnknown> pHistory;
29 hr = CoCreateInstance(CLSID_ACLHistory, NULL, CLSCTX_INPROC_SERVER,
30 IID_PPV_ARG(IUnknown, &pHistory));
31 ok_long(hr, S_OK);
32 ok_int(!!pHistory, TRUE);
33
34 CComPtr<IEnumString> pEnum;
35 hr = pHistory->QueryInterface(IID_PPV_ARG(IEnumString, &pEnum));
36 ok_long(hr, S_OK);
37
38 hr = pEnum->Reset();
39 ok_long(hr, S_OK);
40 hr = pEnum->Reset();
41 ok_long(hr, S_OK);
42
43 hr = pEnum->Skip(0);
45 hr = pEnum->Skip(1);
47 hr = pEnum->Skip(3);
49}
#define ok_hex(expression, result)
Definition: atltest.h:94
#define ok_long(expression, result)
Definition: atltest.h:133
#define skip(...)
Definition: atltest.h:64
#define ok_int(expression, result)
Definition: atltest.h:134
#define E_NOTIMPL
Definition: ddrawi.h:99
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
#define S_OK
Definition: intsafe.h:52
#define FAILED(hr)
Definition: intsafe.h:51
HRESULT hr
Definition: shlfolder.c:183
static int init
Definition: wintirpc.c:33
#define IID_PPV_ARG(Itype, ppType)