/* * PROJECT: ReactOS api tests * LICENSE: LGPL-2.0-or-later (https://spdx.org/licenses/LGPL-2.0-or-later) * PURPOSE: Test for IACLHistory objects * COPYRIGHT: Copyright 2021 Katayama Hirofumi MZ */ #define _UNICODE #define UNICODE #include #include #include #include #include #include struct CCoInit { CCoInit() { hres = CoInitialize(NULL); } ~CCoInit() { if (SUCCEEDED(hres)) { CoUninitialize(); } } HRESULT hres; }; START_TEST(IACLHistory) { CCoInit init; ok_hex(init.hres, S_OK); if (FAILED(init.hres)) { skip("CoInitialize failed with 0x%08lX\n", init.hres); return; } HRESULT hr; CComPtr pHistory; hr = CoCreateInstance(CLSID_ACLHistory, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARG(IUnknown, &pHistory)); ok_long(hr, S_OK); ok_int(!!pHistory, TRUE); CComPtr pEnum; hr = pHistory->QueryInterface(IID_PPV_ARG(IEnumString, &pEnum)); ok_long(hr, S_OK); hr = pEnum->Reset(); ok_long(hr, S_OK); hr = pEnum->Reset(); ok_long(hr, S_OK); hr = pEnum->Skip(0); ok_long(hr, E_NOTIMPL); hr = pEnum->Skip(1); ok_long(hr, E_NOTIMPL); hr = pEnum->Skip(3); ok_long(hr, E_NOTIMPL); }