ReactOS  0.4.14-dev-606-g14ebc0b
dll_startup.cpp File Reference
#include <apitest.h>
#include "dll_startup.h"
Include dependency graph for dll_startup.cpp:

Go to the source code of this file.

Classes

struct  init_static
 

Functions

void WINAPI SetCounterValuesPointer (_Out_ struct counter_values *pcv)
 
BOOL WINAPI DllMain (_In_ HINSTANCE hinstDLL, _In_ DWORD fdwReason, _In_ PVOID pvReserved)
 

Variables

static struct counter_values counter_values
 
static struct counter_valuesp_counter_values
 
static struct init_static init_static
 
SET_COUNTER_VALUES_POINTER SetCounterValuesPointer
 

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( _In_ HINSTANCE  hinstDLL,
_In_ DWORD  fdwReason,
_In_ PVOID  pvReserved 
)

Definition at line 56 of file dll_startup.cpp.

60 {
61  if (fdwReason == DLL_PROCESS_ATTACH)
62  {
65  }
66  else if (fdwReason == DLL_PROCESS_DETACH)
67  {
68  p_counter_values->dtor_counter_at_detach = p_counter_values->dtor_counter;
69  }
70  return TRUE;
71 }
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
#define DLL_PROCESS_DETACH
Definition: compat.h:119
static struct counter_values * p_counter_values
Definition: dll_startup.cpp:20

◆ SetCounterValuesPointer()

void WINAPI SetCounterValuesPointer ( _Out_ struct counter_values pcv)

Definition at line 47 of file dll_startup.cpp.

49 {
50  p_counter_values = pcv;
51  memcpy(pcv, &counter_values, sizeof(counter_values));
52 }
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
static struct counter_values * p_counter_values
Definition: dll_startup.cpp:20

Variable Documentation

◆ counter_values

Initial value:
=
{
0, 0, 0, 0, 5656, 0, 0
}

Definition at line 16 of file dll_startup.cpp.

◆ init_static

◆ p_counter_values

struct counter_values* p_counter_values
static

Definition at line 20 of file dll_startup.cpp.

Referenced by DllMain(), SetCounterValuesPointer(), and init_static::~init_static().

◆ SetCounterValuesPointer

SET_COUNTER_VALUES_POINTER SetCounterValuesPointer

Definition at line 44 of file dll_startup.cpp.