#pragma data_seg("Shared") HHOOK g_hKeyHook = NULL; HHOOK g_hMouseHook = NULL; #pragma data_seg() #pragma comment(linker,"/SECTION:Shared,ERWS")