ReactOS  0.4.15-dev-1384-g878186b
mpr_main.c File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "objbase.h"
#include "winnetwk.h"
#include "wine/debug.h"
#include "wnetpriv.h"
Include dependency graph for mpr_main.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (mpr)
 
LPVOID WINAPI MPR_Alloc (DWORD dwSize)
 
LPVOID WINAPI MPR_ReAlloc (LPVOID lpSrc, DWORD dwSize)
 
BOOL WINAPI MPR_Free (LPVOID lpMem)
 
BOOL WINAPI _MPR_25 (LPBYTE lpMem, INT len)
 
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
 

Function Documentation

◆ _MPR_25()

BOOL WINAPI _MPR_25 ( LPBYTE  lpMem,
INT  len 
)

Definition at line 69 of file mpr_main.c.

70 {
71  FIXME( "(%p, %d): stub\n", lpMem, len );
72 
73  return FALSE;
74 }
#define FALSE
Definition: types.h:117
#define FIXME(fmt,...)
Definition: debug.h:111
GLenum GLsizei len
Definition: glext.h:6722

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hinstDLL,
DWORD  fdwReason,
LPVOID  lpvReserved 
)

Definition at line 79 of file mpr_main.c.

80 {
81  switch (fdwReason) {
82  case DLL_PROCESS_ATTACH:
83  DisableThreadLibraryCalls( hinstDLL );
84  wnetInit(hinstDLL);
85  break;
86 
87  case DLL_PROCESS_DETACH:
88  if (lpvReserved) break;
89  wnetFree();
90  break;
91  }
92  return TRUE;
93 }
#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 IN DWORD IN LPVOID lpvReserved
#define DLL_PROCESS_DETACH
Definition: compat.h:130
void wnetFree(void)
Definition: wnet.c:490
void wnetInit(HINSTANCE hInstDll)
Definition: wnet.c:352

◆ MPR_Alloc()

LPVOID WINAPI MPR_Alloc ( DWORD  dwSize)

Definition at line 39 of file mpr_main.c.

40 {
42 }
#define GetProcessHeap()
Definition: compat.h:595
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:54

◆ MPR_Free()

BOOL WINAPI MPR_Free ( LPVOID  lpMem)

Definition at line 58 of file mpr_main.c.

59 {
60  if ( lpMem )
61  return HeapFree( GetProcessHeap(), 0, lpMem );
62  else
63  return FALSE;
64 }
#define FALSE
Definition: types.h:117
#define GetProcessHeap()
Definition: compat.h:595
#define HeapFree(x, y, z)
Definition: compat.h:594

◆ MPR_ReAlloc()

LPVOID WINAPI MPR_ReAlloc ( LPVOID  lpSrc,
DWORD  dwSize 
)

Definition at line 47 of file mpr_main.c.

48 {
49  if ( lpSrc )
51  else
53 }
#define GetProcessHeap()
Definition: compat.h:595
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define HeapReAlloc
Definition: compat.h:593
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:54

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( mpr  )