ReactOS 0.4.15-dev-7918-g2a2556c
ntobjshex.cpp File Reference
#include "precomp.h"
#include <atlwin.h>
Include dependency graph for ntobjshex.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 57 of file ntobjshex.cpp.

58{
59 return g_Module.DllCanUnloadNow();
60}
CComModule g_Module
Definition: ntobjshex.cpp:18

◆ DllGetClassObject()

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

Definition at line 51 of file ntobjshex.cpp.

52{
53 return g_Module.DllGetClassObject(rclsid, riid, ppv);
54}
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39

◆ DllMain()

DllMain ( HINSTANCE  hinstDLL,
DWORD  fdwReason,
LPVOID  fImpLoad 
)

Definition at line 21 of file ntobjshex.cpp.

22{
23 if (fdwReason == DLL_PROCESS_ATTACH)
24 {
25 g_hInstance = hinstDLL;
27
28 g_Module.Init(ObjectMap, g_hInstance, NULL);
29 }
30 else if (fdwReason == DLL_PROCESS_DETACH)
31 {
33 g_Module.Term();
34 }
35 return TRUE;
36}
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
HINSTANCE g_hInstance
Definition: ntobjshex.cpp:17

◆ DllRegisterServer()

STDAPI DllRegisterServer ( void  )

Definition at line 39 of file ntobjshex.cpp.

40{
41 return g_Module.DllRegisterServer(FALSE);
42}
#define FALSE
Definition: types.h:117

◆ DllUnregisterServer()

STDAPI DllUnregisterServer ( void  )

Definition at line 45 of file ntobjshex.cpp.

46{
47 return g_Module.DllUnregisterServer(FALSE);
48}

Variable Documentation

◆ g_hInstance

HINSTANCE g_hInstance

Definition at line 17 of file ntobjshex.cpp.

Referenced by DllMain().

◆ g_Module

CComModule g_Module