TheGreyBeast
Programmer
I want to create a 3d program using OpenGL and Software rendering (gdi). The main problem are the system hotkeys, because I don't want the user to be able to minimize/activate startmenu/press ALT-TAB, etc..
I know, using DirectDraw, SetCooperativeLevel with DDSCL_EXCLUSIVE|DDSCL_FULLSCREEN will solve the hotkey problem (not quite, really, CTRL-ALT-DEL is still working?!?)..
anyway, the point is I don't use DirectX.. I use OpenGL and (maybe) later I'll add support for a software rendering (even that one is using the gdi, not DirectDraw).
First, I tried SystemParametersInfo(SPI_SETSCREENSAVERRUNNING,0,&old,0); and it worked ok on Win95/Win98/WinMe, but it didn't work on WinNT/2000/XP... then I tried the RegisterHotKey(0,0,MOD_ALT,VK_TAB); to eliminate AT LEAST the ALT-TAB, and guess what? It worked ONLY on NT family (didn't work on Win9x/Me)... but this RegisterHotKey is not so good because it disables ONLY the ALT-TAB... anyone know of such a function, to disable all the system hotkeys in NT family, like the SystemParametersInfo(SPI_SETSCREENSAVERRUNNING...) does on Win9x? what is that SetCooperativeLevel doing so special anyway??
thanks in advance,
Grey Beast
There is something in each of us we don't know. Something with great power.
I know, using DirectDraw, SetCooperativeLevel with DDSCL_EXCLUSIVE|DDSCL_FULLSCREEN will solve the hotkey problem (not quite, really, CTRL-ALT-DEL is still working?!?)..
anyway, the point is I don't use DirectX.. I use OpenGL and (maybe) later I'll add support for a software rendering (even that one is using the gdi, not DirectDraw).
First, I tried SystemParametersInfo(SPI_SETSCREENSAVERRUNNING,0,&old,0); and it worked ok on Win95/Win98/WinMe, but it didn't work on WinNT/2000/XP... then I tried the RegisterHotKey(0,0,MOD_ALT,VK_TAB); to eliminate AT LEAST the ALT-TAB, and guess what? It worked ONLY on NT family (didn't work on Win9x/Me)... but this RegisterHotKey is not so good because it disables ONLY the ALT-TAB... anyone know of such a function, to disable all the system hotkeys in NT family, like the SystemParametersInfo(SPI_SETSCREENSAVERRUNNING...) does on Win9x? what is that SetCooperativeLevel doing so special anyway??
thanks in advance,
Grey Beast
There is something in each of us we don't know. Something with great power.