![]() Then it processes the original request for wglSwapBuffers and returns the execution back to the program.Īs far as querying in C#. When the process calls this function, it ends up calling the FRAPS module and then FRAPS captures the back buffer into its queue for encoding to AVI and renders its little indication. wglSwapBuffers is typically the only relevant one in OpenGL. On the other hand, if the process has loaded them, it simply hooks the appropriate rendering function from that library by removing protection and injecting a JMP hook. If all calls return NULL, the hook attempts to remove itself from the process. The magic in the DLL comes down to running a procedural set of tests using GetModuleHandleA to observe if the process it is attached to has loaded any OpenGL/DirectX modules. The process gets started with SetWindowsHookEx to request that the OS load the FRAPS hook DLL into every running process it can. From what I understand, FRAPS uses a relatively brute force approach to determining where to lay down shop.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |