can a windows process successfully hook opengl lib ?

Questions about Wine on Linux
Locked
yves
Newbie
Newbie
Posts: 1
Joined: Fri Aug 26, 2016 3:25 pm

can a windows process successfully hook opengl lib ?

Post by yves »

Hi all,

I am trying to make BAM (http://www.ravarcade.pl/) work under wine.
this program inject a dll inside an other program (Future Pinball) and then dynamically patch some functions.
Some patched function are in Kernel32.dll some other are for opengl. The developer of BAM told me he was using microsoft detour 3.0 and wglGetProcAddress for some other opengl function.

Future pinball itself run well under wine (with some tricks listed on winehq)

using an older version (BAM_v0.9-40) I got it nearly working:
- Future pinball continue to load succesfully while patched
- BAM menu is working and display some overlay that show that at least some part are working
- but the main functionality does not show => the opengl rendering is not affected

As every other patching seems to have work properly, does someone know if there is any specific issue with the wine opengl implementation that would prevent microsoft detour to hook the relevant function ?

I read the https://wiki.winehq.org/Wine_Developer% ... and_OpenGL
and I understood that wine provide a layer that is need to interact with linux OpenGL. So I am wrong that this layer,
should be patchable like any other windows dll ? (using either detour or wglGetProcAddress)

Technically how would you investigate this further ?

Any help appreciated,

Yves
Locked