typedef struct { int data; } my_global; my_global *global;
void __cdecl InitRegion( POINTER region, PTRSZVAL region_size ) { // do something to initialize 'region' } PRELOAD( InitGlobal ) { SimpleRegisterAndCreateGlobalWithInit( global, InitRegion ); }