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

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

Variables

static HINSTANCE instance
 

Function Documentation

◆ DllCanUnloadNow()

HRESULT WINAPI DllCanUnloadNow ( void  )

Definition at line 44 of file main.c.

45 {
46  return S_FALSE;
47 }
#define S_FALSE
Definition: winerror.h:2357

◆ DllMain()

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

Definition at line 29 of file main.c.

30 {
31  switch (reason)
32  {
33  case DLL_PROCESS_ATTACH:
34  instance = hinstance;
35  DisableThreadLibraryCalls(hinstance);
36  break;
37  }
38  return TRUE;
39 }
#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 HINSTANCE instance
Definition: main.c:27
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904

◆ DllRegisterServer()

HRESULT WINAPI DllRegisterServer ( void  )

Definition at line 52 of file main.c.

53 {
55 }
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 60 of file main.c.

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

Variable Documentation

◆ instance

HINSTANCE instance
static

Definition at line 27 of file main.c.

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