RTHM Shared Memory Versioning

Discussion in 'RivaTuner Advanced Discussion forum' started by stangowner, Jan 5, 2011.

  1. stangowner

    stangowner Guest

    Messages:
    607
    Likes Received:
    11
    GPU:
    2xMSI N550GTX-Ti Cy II OC
    Hi Alex. Happy New Year!

    I have a quick question on this:
    I plan on doing an update to the gadget, and wanted to include this fix before a new RT leaves thousands of gadgets broken. However, I'm now realizing the header size only exists in Afterburner right now (I guess I missed it by starting with a copy of my RT project, as it is definitely in the Afterburner SDK sample).

    Is there any other way for me to get/calculate the size of the header so I can find the first entry once the format changes? I'm currently using the same code as the sample in the SDK:
    (LPRTHM_SHARED_MEMORY_ENTRY)((LPBYTE)(lpHeader + 1) + dwSource * lpHeader->dwEntrySize);

    I'm currently getting version 0x00010002 in RT 2.24C. Do I need to just gracefully trap versions higher then that for now and show a descriptive error to the user so they know they will need to update once I have the gadget updated?

    Thanks!
    Nick
     

Share This Page