ReactOS  0.4.14-dev-1233-gf5658fd
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 58 of file ntobjshex.cpp.

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

◆ DllGetClassObject()

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

Definition at line 52 of file ntobjshex.cpp.

53 {
54  return g_Module.DllGetClassObject(rclsid, riid, ppv);
55 }
CComModule g_Module
Definition: ntobjshex.cpp:19
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39

◆ DllMain()

DllMain ( HINSTANCE  hinstDLL,
DWORD  fdwReason,
LPVOID  fImpLoad 
)

Definition at line 22 of file ntobjshex.cpp.

23 {
24  if (fdwReason == DLL_PROCESS_ATTACH)
25  {
26  g_hInstance = hinstDLL;
28 
29  g_Module.Init(ObjectMap, g_hInstance, NULL);
30  }
31  else if (fdwReason == DLL_PROCESS_DETACH)
32  {
33  g_hInstance = NULL;
34  g_Module.Term();
35  }
36  return TRUE;
37 }
HINSTANCE g_hInstance
Definition: ntobjshex.cpp:18
#define TRUE
Definition: types.h:120
CComModule g_Module
Definition: ntobjshex.cpp:19
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
smooth NULL
Definition: ftsmooth.c:416
#define DLL_PROCESS_DETACH
Definition: compat.h:119

◆ DllRegisterServer()

STDAPI DllRegisterServer ( void  )

Definition at line 40 of file ntobjshex.cpp.

41 {
42  return g_Module.DllRegisterServer(FALSE);
43 }
CComModule g_Module
Definition: ntobjshex.cpp:19

◆ DllUnregisterServer()

STDAPI DllUnregisterServer ( void  )

Definition at line 46 of file ntobjshex.cpp.

47 {
48  return g_Module.DllUnregisterServer(FALSE);
49 }
CComModule g_Module
Definition: ntobjshex.cpp:19

Variable Documentation

◆ g_hInstance

HINSTANCE g_hInstance

Definition at line 18 of file ntobjshex.cpp.

Referenced by DllMain().

◆ g_Module

CComModule g_Module