I have an old game which I'd like to run in windowed mode.
Shouldn't it be possible to force this by editing the arguments to CreateWindowEx calls or whatever?
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
how to modify CreateWindowEx to force windowed mode?
Re: how to modify CreateWindowEx to force windowed mode?
If the game is a modern game, you will have to hack the Direct3D calls the game makes. Its not easy to add windowed mode to a game that doesn't support it.
CreateWindowEx has nothing to do with windowed mode vs fullscreen mode.
CreateWindowEx has nothing to do with windowed mode vs fullscreen mode.
Re: how to modify CreateWindowEx to force windowed mode?
Look up something called "D3DWindower" (Website in the Readme for it: http://www.geocities.jp/menopem/ )
I use it to force DK2 into window mode, might work for the game your trying to play
I use it to force DK2 into window mode, might work for the game your trying to play
-
- Moderator
- Posts: 652
- Joined: Wed Oct 18, 2006 9:48 pm
- Location: Germany
- Has thanked: 19 times
- Been thanked: 46 times
- Contact:
Re: how to modify CreateWindowEx to force windowed mode?
Is there any article or tutorial about how functions need to be hooked?
Would need to statically hook it for debugging it properly.
Would need to statically hook it for debugging it properly.
-
- advanced
- Posts: 67
- Joined: Thu Jun 14, 2007 1:14 pm
- Location: Southern Germany
- Has thanked: 7 times
- Been thanked: 1 time
- Contact:
Re: how to modify CreateWindowEx to force windowed mode?
Look for the Microsoft Detours library, available somewhere on research.microsoft.com. It can do function hooking, so you can modify the arguments to CreateWindowEX() there
-Darkstar
-Darkstar
-
- Moderator
- Posts: 652
- Joined: Wed Oct 18, 2006 9:48 pm
- Location: Germany
- Has thanked: 19 times
- Been thanked: 46 times
- Contact:
Re: how to modify CreateWindowEx to force windowed mode?
I know Detours. I can also directly modify the game executable and/or use a proxy DirectDraw dll.
The only question is what parameters need to be changed and how.
The only question is what parameters need to be changed and how.