[LPK][GDI32] Enable mirroring via version resource (#965)

Add a mechanism that detects via the version resource whether it's needed to mirror
the application layout or not. This is a "follow up" to commit 5b14b6f.

This code is taken from the GetProcessDefaultLayout() function from Wine
(called there "WIN_CreateWindowEx").

In Windows the version-resource mirroring happens when the GDI is loading the LPK.

- Implement mirroring via version resource. GDI linking on startup is required.

- GDI32: Add LPK loading on GDI startup.

To enable mirroring via version resource the lpk.dll must be loaded before any windows are created.
This is done through GdiInitializeLanguagePack() function which is called in GdiProcessSetup().

- LPK: Use Wine debug messaging.
This commit is contained in:
Baruch Rutman 2018-10-24 22:34:38 +03:00 committed by Hermès BÉLUSCA - MAÏTO
parent 17449bcff1
commit 6a3b1879a1
9 changed files with 99 additions and 10 deletions

View file

@ -64,8 +64,9 @@ extern LPKGCP LpkGetCharacterPlacement;
#define SAPCALLBACKDELAY 244
#define LPK_ETO 1
#define LPK_GCP 2
#define LPK_INIT 1
#define LPK_ETO 2
#define LPK_GCP 3
/* MACRO ********************************************************************/
@ -319,6 +320,16 @@ LoadLPK(
INT LpkFunctionID
);
VOID
WINAPI
GdiInitializeLanguagePack(
_In_ DWORD InitParam);
VOID
WINAPI
InitializeLpkHooks(
_In_ FARPROC *hookfuncs);
BOOL
WINAPI
GetETM(HDC hdc,