ReactOS  0.4.15-dev-980-ge160524
stobject.cpp File Reference
#include "precomp.h"
Include dependency graph for stobject.cpp:

Go to the source code of this file.

Functions

 DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
 
STDAPI DllRegisterServer (void)
 
STDAPI DllUnregisterServer (void)
 
STDAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv)
 
STDAPI DllCanUnloadNow (void)
 

Variables

HINSTANCE g_hInstance
 
CComModule g_Module
 

Function Documentation

◆ DllCanUnloadNow()

STDAPI DllCanUnloadNow ( void  )

Definition at line 56 of file stobject.cpp.

57 {
58  return g_Module.DllCanUnloadNow();
59 }
HRESULT DllCanUnloadNow()
Definition: atlbase.h:928
CComModule g_Module
Definition: stobject.cpp:17

◆ DllGetClassObject()

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

Definition at line 50 of file stobject.cpp.

51 {
52  return g_Module.DllGetClassObject(rclsid, riid, ppv);
53 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
HRESULT DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
Definition: atlbase.h:935
CComModule g_Module
Definition: stobject.cpp:17

◆ DllMain()

DllMain ( HINSTANCE  hinstDLL,
DWORD  fdwReason,
LPVOID  fImpLoad 
)

Definition at line 20 of file stobject.cpp.

21 {
22  if (fdwReason == DLL_PROCESS_ATTACH)
23  {
24  g_hInstance = hinstDLL;
26 
27  g_Module.Init(ObjectMap, g_hInstance, NULL);
28  }
29  else if (fdwReason == DLL_PROCESS_DETACH)
30  {
31  g_hInstance = NULL;
32  g_Module.Term();
33  }
34  return TRUE;
35 }
#define TRUE
Definition: types.h:120
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
void Term()
Definition: atlbase.h:820
HINSTANCE g_hInstance
Definition: stobject.cpp:16
HRESULT Init(_ATL_OBJMAP_ENTRY *p, HINSTANCE, const GUID *plibid)
Definition: atlbase.h:797
smooth NULL
Definition: ftsmooth.c:416
CComModule g_Module
Definition: stobject.cpp:17
#define DLL_PROCESS_DETACH
Definition: compat.h:130

◆ DllRegisterServer()

STDAPI DllRegisterServer ( void  )

Definition at line 38 of file stobject.cpp.

39 {
41 }
HRESULT DllRegisterServer(BOOL bRegTypeLib=TRUE)
Definition: atlbase.h:940
#define FALSE
Definition: types.h:117
CComModule g_Module
Definition: stobject.cpp:17

◆ DllUnregisterServer()

STDAPI DllUnregisterServer ( void  )

Definition at line 44 of file stobject.cpp.

45 {
47 }
#define FALSE
Definition: types.h:117
CComModule g_Module
Definition: stobject.cpp:17
HRESULT DllUnregisterServer(BOOL bUnRegTypeLib=TRUE)
Definition: atlbase.h:945

Variable Documentation

◆ g_hInstance

HINSTANCE g_hInstance

Definition at line 16 of file stobject.cpp.

Referenced by DllMain().

◆ g_Module