Jump to content
The simFlight Network Forums

szm99

Members
  • Posts

    1
  • Joined

  • Last visited

About szm99

  • Birthday 01/01/1970

Contact Methods

  • Website URL
    http://

szm99's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Dear Peter, i'm currently build a dump fuel gauge for FS2004 default 744 using MS VC6. I want to read/write memory directly to do it. Because I dont know the offset, so I use one loop to read memory one by one. But I still can't find the offset, could you give me some tips?Thank you! :D HMODULE GLOBALHANDLE; UINT32 MEM; GLOBALHANDLE = GetModuleHandle("GLOBAL.DLL");// I have also try to use SIM1.dll, PANELS.DLL, but all fail :? if ((GLOBALHANDLE ) != NULL) { lookup_var(&FUEL_TANK_CENTER);//TokenVar:FUEL_TANK_CENTER_LEVEL for(int i=0x0;i<0x3FFF;i++) //3FFF is big enough,i think { MEM = ((UINT32) GetProcAddress(GLOBALHANDLE ,"Linkage")) + i; // here is the offset if( *(double *)MEM == FUEL_TANK_CENTER.var_value.n ) { MessageBox(NULL,"Found","TEST",MB_OK); } } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.