Is it still possible to get mouse input without using the windows message queue?
I know that as of Windows Vista or so, it was still possible to use DOS interrupts.
that meant you could use AsyncGetKeyState for keyboard, INT 31h for mouse, and didn't need a windows message processor at all.
the nice thing about this was that Alt-Tab messages no longer got processed. you had full control of the PC, no lost devices. The only thing that still worked was ctrl-alt-del.
right now i'm using windows messages to get mouse input. but that's the only message i process.
if you take a careful look at the directx docs, it says the best way to do things is to load everything up into memory at program start, then go for it.
so all this reload / restore on lost device is a bad thing.
while a number of games attempt to support it (as a well behaved windows app should), few seem to succeed in all cases. many warn that it can introduce instability and recommend restarting the game (Oblivion for example).
right now, instead of attempting to recover a lost device, i simply exit with a message saying a background process took vidcard access away from the game, and recommend closing any interfering processes and restarting the game.
But it would be nice to trap out alt-tab etc.
I want full control of the pc, that way my games don't have to play well with others.