The internet is a lawless place with knowledge and sarcastic wit the pistols of this wild frontier.
Don't go out without being sufficiently armed.

~Blade

Other places

Ares (Current version: 0.B)

Ares's primary facilities have been moved elsewhere:

  • If you wish to report a bug in Ares, please proceed to its bugtracker.
  • If you'd like to request a feature, register a blueprint.
  • If you have questions or can provide answers regarding Ares's usage, visit the Q&A section.
  • Before you post a new question, you should check the FAQ, though.

Behavior

  • Mind the forum rules.
  • Due to its documentedly horrible quality, we do not offer NPatch support.


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Red Alert 2 Windows 8 DirectDraw compatibility
Author Message
Corporal XTF Offline
Member
***
Community Patrons

Posts: 54
Joined: 6 Aug 2010
Reputation: 0
Post: #1
Red Alert 2 Windows 8 DirectDraw compatibility
I'm stuck on this one.. Any hints?

The game Red Alert 2 runs on Windows 8, but as soon as I inject a DLL (via ddraw.dll or an extra DLL) it stops drawing buttons on the main menu. With the DLL it still work fine in windowed mode and it still works fine on Windows 7. The DLL is basically just

Code:
typedef HRESULT(WINAPI* LPDIRECTDRAWCREATE)(GUID*, LPDIRECTDRAW*, IUnknown*);
HMODULE dd_dll = LoadLibrary("system32/ddraw.dll");
LPDIRECTDRAWCREATE dd_create = reinterpret_cast<LPDIRECTDRAWCREATE>(GetProcAddress(dd_dll, "DirectDrawCreate"));
return dd_create(lpGUID, lplpDD, pUnkOuter);
I'm guessing some kind of automatic compatibility mode is activated for the original game that gets disabled by the DLL, but how do I find out what's causing this? It's important as the DLL provides improvements for gamers that should also be available on Windows 8 (and beyond).

http://reverseengineering.stackexchange....patibility

Edit by Renegade: Fixed the code block to wrap only the code.
29.10.2014 20:23:11
Find all posts by this user Quote this message in a reply
Commander-in-Chief DCoder Offline
Not Ares Anymore
*****
Admins

Posts: 1 756
Joined: 22 Nov 2004
Reputation: 18
Post: #2
RE: Red Alert 2 Windows 8 DirectDraw compatibility
Sorry, I have no ideas other than the ones I posted at StackExchange previously. I just created a bounty over there to draw some more attention and maybe a good answer.

11.11.2014 20:04:10
Visit this user's website Find all posts by this user Quote this message in a reply
Corporal XTF Offline
Member
***
Community Patrons

Posts: 54
Joined: 6 Aug 2010
Reputation: 0
Post: #3
RE: Red Alert 2 Windows 8 DirectDraw compatibility
A DirectDraw compatibility mode gets activated for game.exe when ra2.exe is present and some other conditions are met. The updated executable now runs on Windows 8, though performance appears to be sub-optimal at least in windowed mode.
Alt-tab still doesn't work, the original exe suffers from the same problem.

How much is known about the game's use of DD? Does the game use real Windows control for it's interface and if so, how do these get drawn?

I'm assuming YR suffers from the same problems.
02.04.2015 23:53:49
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)