ReactOS
0.4.16-dev-1946-g52006dd
certmgr.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS API tests
3
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4
* PURPOSE: COM interface test for certmgr classes
5
* COPYRIGHT: Copyright 2021 Mark Jansen <mark.jansen@reactos.org>
6
*/
7
8
#include "
com_apitest.h
"
9
10
#define NDEBUG
11
#include <debug.h>
12
13
static
const
CLASS_AND_INTERFACES
ExpectedInterfaces
[] =
14
{
15
{
16
ID_NAME
(CLSID_CERTMGR_CertMgrAboutObject_1,
NTDDI_MIN
,
NTDDI_MAX
),
17
{
18
{
NTDDI_MIN
,
NTDDI_MAX
, &IID_ISnapInAbout },
19
{
NTDDI_MIN
,
NTDDI_MAX
, &
IID_IUnknown
},
20
},
21
L
"both"
22
},
23
{
24
ID_NAME
(CLSID_CERTMGR_CertMgrObject_1,
NTDDI_MIN
,
NTDDI_MAX
),
25
{
26
{
NTDDI_MIN
,
NTDDI_MAX
, &IID_IComponentData },
27
{
NTDDI_MIN
,
NTDDI_MAX
, &IID_IExtendPropertySheet },
28
{
NTDDI_MIN
,
NTDDI_MAX
, &
IID_IUnknown
},
29
{
NTDDI_MIN
,
NTDDI_MAX
, &
IID_IPersistStream
},
30
},
31
L
"both"
32
},
33
};
34
35
START_TEST
(certmgr)
36
{
37
TestClasses
(
L
"certmgr"
,
ExpectedInterfaces
,
RTL_NUMBER_OF
(
ExpectedInterfaces
));
38
}
RTL_NUMBER_OF
#define RTL_NUMBER_OF(x)
Definition:
RtlRegistry.c:12
NTDDI_MIN
#define NTDDI_MIN
Definition:
apitest.h:20
NTDDI_MAX
#define NTDDI_MAX
Definition:
apitest.h:21
START_TEST
#define START_TEST(x)
Definition:
atltest.h:75
IID_IUnknown
const GUID IID_IUnknown
Definition:
classfactory.cpp:11
ExpectedInterfaces
static const CLASS_AND_INTERFACES ExpectedInterfaces[]
Definition:
certmgr.c:13
TestClasses
VOID TestClasses(_In_ PCWSTR ModuleName, _In_ PCCLASS_AND_INTERFACES ExpectedInterfaces, _In_ INT ExpectedInterfaceCount)
Definition:
com_apitest.c:815
ID_NAME
#define ID_NAME(c)
Definition:
com_apitest.c:38
com_apitest.h
L
#define L(x)
Definition:
resources.c:13
IID_IPersistStream
const GUID IID_IPersistStream
Definition:
proxy.cpp:13
_CLASS_AND_INTERFACES
Definition:
com_apitest.h:44
modules
rostests
apitests
com
certmgr.c
Generated on Thu Dec 4 2025 06:07:33 for ReactOS by
1.9.6