mirror of
https://github.com/reactos/reactos.git
synced 2024-08-22 03:12:51 +00:00
![Baruch Rutman](/assets/img/avatar_default.png)
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.
24 lines
489 B
CMake
24 lines
489 B
CMake
|
|
add_definitions(-DLANGPACK)
|
|
include_directories(include)
|
|
spec2def(lpk.dll lpk.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
bidi.c
|
|
lpk.c
|
|
stub.c
|
|
ros_lpk.h)
|
|
|
|
add_library(lpk SHARED
|
|
${SOURCE}
|
|
lpk.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/lpk.def)
|
|
|
|
set_module_type(lpk win32dll UNICODE)
|
|
|
|
target_link_libraries(lpk wine)
|
|
|
|
add_importlibs(lpk usp10 version user32 gdi32 msvcrt kernel32 ntdll)
|
|
add_pch(lpk ros_lpk.h SOURCE)
|
|
add_cd_file(TARGET lpk DESTINATION reactos/system32 FOR all)
|