Sign in to follow this  
Guest varjupe

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

Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

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