ReactOS 0.4.15-dev-7998-gdb93cb1
comsup.c File Reference
#include <windef.h>
#include "comsup.h"
Include dependency graph for comsup.c:

Go to the source code of this file.

Macros

#define INITGUID
 

Functions

VOID DllInitServer (VOID)
 
STDAPI DllRegisterServer (VOID)
 
STDAPI DllUnregisterServer (VOID)
 
STDAPI DllCanUnloadNow (VOID)
 
STDAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv)
 

Variables

LONG LockCount
 
LONG ObjectCount
 

Macro Definition Documentation

◆ INITGUID

#define INITGUID

Definition at line 1 of file comsup.c.

Function Documentation

◆ DllCanUnloadNow()

STDAPI DllCanUnloadNow ( VOID  )

Definition at line 35 of file comsup.c.

36{
37 if ((ObjectCount != 0) || (LockCount != 0))
38 {
39 return S_FALSE;
40 }
41 else
42 {
43 return S_OK;
44 }
45}
LONG LockCount
Definition: comsup.c:6
LONG ObjectCount
Definition: comsup.c:7
#define S_OK
Definition: intsafe.h:52
#define S_FALSE
Definition: winerror.h:2357

◆ DllGetClassObject()

STDAPI DllGetClassObject ( REFCLSID  rclsid,
REFIID  riid,
LPVOID ppv 
)

Definition at line 49 of file comsup.c.

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}
#define NULL
Definition: types.h:112
REFIID LPVOID * ppv
Definition: atlbase.h:39
HRESULT hr
Definition: shlfolder.c:183
#define CLASS_E_CLASSNOTAVAILABLE
Definition: winerror.h:2663

◆ DllInitServer()

VOID DllInitServer ( VOID  )

Definition at line 11 of file comsup.c.

12{
13 ObjectCount = 0;
14 LockCount = 0;
15}

◆ DllRegisterServer()

STDAPI DllRegisterServer ( VOID  )

Definition at line 19 of file comsup.c.

20{
21 /* Always return S_OK, since there is currently nothing that can go wrong */
22 return S_OK;
23}

◆ DllUnregisterServer()

STDAPI DllUnregisterServer ( VOID  )

Definition at line 27 of file comsup.c.

28{
29 /* Always return S_OK, since there is currently nothing that can go wrong */
30 return S_OK;
31}

Variable Documentation

◆ LockCount

◆ ObjectCount