ReactOS 0.4.16-dev-297-gc569aee
comsup.c
Go to the documentation of this file.
1#define INITGUID
2
3#include <windef.h>
4#include "comsup.h"
5
8
9
10VOID
12{
13 ObjectCount = 0;
14 LockCount = 0;
15}
16
17
20{
21 /* Always return S_OK, since there is currently nothing that can go wrong */
22 return S_OK;
23}
24
25
28{
29 /* Always return S_OK, since there is currently nothing that can go wrong */
30 return S_OK;
31}
32
33
36{
37 if ((ObjectCount != 0) || (LockCount != 0))
38 {
39 return S_FALSE;
40 }
41 else
42 {
43 return S_OK;
44 }
45}
46
47
50{
51 HRESULT hr;
52
53 /* There are no classes to export, so always return CLASS_E_CLASSNOTAVAILABLE*/
54 *ppv = NULL;
56
57 return hr;
58}
STDAPI DllRegisterServer(void)
Definition: misc.cpp:167
STDAPI DllUnregisterServer(void)
Definition: misc.cpp:183
HRESULT WINAPI DllCanUnloadNow(void)
Definition: misc.cpp:160
#define STDAPI
Definition: basetyps.h:41
STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
Definition: comsup.c:49
VOID DllInitServer(VOID)
Definition: comsup.c:11
LONG LockCount
Definition: comsup.c:6
LONG ObjectCount
Definition: comsup.c:7
#define NULL
Definition: types.h:112
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define S_OK
Definition: intsafe.h:52
long LONG
Definition: pedump.c:60
#define REFIID
Definition: guiddef.h:118
#define REFCLSID
Definition: guiddef.h:117
HRESULT hr
Definition: shlfolder.c:183
#define S_FALSE
Definition: winerror.h:2357
#define CLASS_E_CLASSNOTAVAILABLE
Definition: winerror.h:2663