mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 05:52:57 +00:00
[SDK] Define CCoInit in shellutils
This commit is contained in:
parent
8083ef9ad7
commit
d82185f104
7 changed files with 30 additions and 59 deletions
|
@ -14,20 +14,13 @@
|
|||
#include <stdio.h>
|
||||
#include <shellutils.h>
|
||||
|
||||
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))
|
||||
ok_hex(init.hr, S_OK);
|
||||
if (FAILED(init.hr))
|
||||
{
|
||||
skip("CoInitialize failed with 0x%08lX\n", init.hres);
|
||||
skip("CoInitialize failed with 0x%08lX\n", init.hr);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue