ReactOS  0.4.15-dev-1386-g5cb9f87
main.c File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "objbase.h"
#include "rpcproxy.h"
Include dependency graph for main.c:

Go to the source code of this file.

Functions

HRESULT WINAPI DllCanUnloadNow (void)
 
BOOL WINAPI DllMain (HINSTANCE hinstance, DWORD reason, LPVOID reserved)
 
HRESULT WINAPI DllRegisterServer (void)
 
HRESULT WINAPI DllUnregisterServer (void)
 

Variables

static HINSTANCE instance
 

Function Documentation

◆ DllCanUnloadNow()

HRESULT WINAPI DllCanUnloadNow ( void  )

Definition at line 29 of file main.c.

30 {
31  return S_FALSE;
32 }
#define S_FALSE
Definition: winerror.h:2357

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hinstance,
DWORD  reason,
LPVOID  reserved 
)

Definition at line 34 of file main.c.

35 {
36  switch (reason)
37  {
38  case DLL_PROCESS_ATTACH:
39  instance = hinstance;
40  DisableThreadLibraryCalls(hinstance);
41  break;
42  }
43  return TRUE;
44 }
#define TRUE
Definition: types.h:120
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904
static HINSTANCE instance
Definition: main.c:27

◆ DllRegisterServer()

HRESULT WINAPI DllRegisterServer ( void  )

Definition at line 49 of file main.c.

50 {
52 }
HRESULT __wine_register_resources(HMODULE module) DECLSPEC_HIDDEN
Definition: register.c:98
static HINSTANCE instance
Definition: main.c:27

◆ DllUnregisterServer()

HRESULT WINAPI DllUnregisterServer ( void  )

Definition at line 57 of file main.c.

58 {
60 }
HRESULT __wine_unregister_resources(HMODULE module) DECLSPEC_HIDDEN
Definition: register.c:110
static HINSTANCE instance
Definition: main.c:27

Variable Documentation

◆ instance

HINSTANCE instance
static

Definition at line 27 of file main.c.

Referenced by DllMain(), DllRegisterServer(), and DllUnregisterServer().