Jump to content
Sign in to follow this  
Guest varjupe

How can I read "Instant replay" and "Pause" state from ...

Recommended Posts

Guest varjupe

Is it possible ?I tried this (in part of callback):--------------------------------------------[pre]char v_paused = 0;UINT32 mMem;HANDLE hMod=NULL;if ((hMod) == NULL) { hMod = GetModuleHandle("GLOBAL.DLL"); if ((hMod) != NULL) { mMem = ((UINT32) GetProcAddress(hMod,"Linkage")) + 0x0250; //? pause offset ? } else { mMem = 0; }}if (mMem != 0) { nVal=((* (char *)mMem)); // If paused, then the memory value is equals 0, else this value equals 1. if (nVal == 0) { v_paused = 1; //YES } else { v_paused = 0; //NO }}[/pre]--------------------------------------------I don't know what is the wrong: the address (offset) or my code ?Can you tell me the contacts for this question ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...