Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Typedefs | Functions
winit.cpp File Reference
#include "precompiled.h"
#include "lib/sysdep/os/win/winit.h"
#include "lib/sysdep/os/win/win.h"

Go to the source code of this file.

Typedefs

typedef Status(* PfnLibError )()
 

Functions

 __declspec (allocate(".WINIT$I$")) PfnLibError initBegin=0
 
 __declspec (allocate(".WINIT$IZ")) PfnLibError initEnd=0
 
 __declspec (allocate(".WINIT$S$")) PfnLibError shutdownBegin=0
 
 __declspec (allocate(".WINIT$SZ")) PfnLibError shutdownEnd=0
 
static void CallFunctionPointers (PfnLibError *begin, PfnLibError *end)
 call into a range of function pointers. More...
 
void winit_CallInitFunctions ()
 call each registered function. More...
 
void winit_CallShutdownFunctions ()
 

Typedef Documentation

typedef Status(* PfnLibError)()

Definition at line 46 of file winit.cpp.

Function Documentation

__declspec ( allocate(".WINIT$I$")  )
pure virtual
__declspec ( allocate(".WINIT$IZ")  )
pure virtual
__declspec ( allocate(".WINIT$S$")  )
pure virtual
__declspec ( allocate(".WINIT$SZ")  )
pure virtual
static void CallFunctionPointers ( PfnLibError begin,
PfnLibError end 
)
static

call into a range of function pointers.

Parameters
[begin,end),:STL-style range

note: pointers = 0 are ignored. this is because the above placeholders are initialized to 0 and because the range may be larger than expected due to COFF section padding (with zeroes).

Definition at line 70 of file winit.cpp.

void winit_CallInitFunctions ( )

call each registered function.

if this is called before CRT initialization, callbacks must not use any non-stateless CRT functions such as atexit. see wstartup.h for the current status on this issue.

Definition at line 87 of file winit.cpp.

void winit_CallShutdownFunctions ( )

Definition at line 92 of file winit.cpp.