[GDI32_VISTA] Move D3DKMT functions out of gdi32. CORE-17433

This commit is contained in:
Thomas Faber 2021-11-13 11:43:41 -05:00
parent 757bed81b1
commit 49bb853b24
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
12 changed files with 66 additions and 21 deletions

View file

@ -11,6 +11,7 @@ if(USE_DIBLIB)
endif()
add_subdirectory(gdi/gdi32)
add_subdirectory(gdi/gdi32_vista)
add_subdirectory(printing)
add_subdirectory(reactx)
add_subdirectory(user/user32)

View file

@ -608,6 +608,3 @@
608 stdcall bMakePathNameW(wstr wstr wstr long)
609 stdcall cGetTTFFromFOT(long long long long long long long)
610 stdcall gdiPlaySpoolStream(long long long long long long)
; FIXME: Wine DX Dlls need these
@ stdcall D3DKMTCreateDCFromMemory(ptr)
@ stdcall D3DKMTDestroyDCFromMemory(ptr)

View file

@ -1579,16 +1579,3 @@ SelectObject(
return NULL;
}
/***********************************************************************
* D3DKMTCreateDCFromMemory (GDI32.@)
*/
DWORD WINAPI D3DKMTCreateDCFromMemory( D3DKMT_CREATEDCFROMMEMORY *desc )
{
return NtGdiDdDDICreateDCFromMemory( desc );
}
DWORD WINAPI D3DKMTDestroyDCFromMemory( const D3DKMT_DESTROYDCFROMMEMORY *desc )
{
return NtGdiDdDDIDestroyDCFromMemory( desc );
}

View file

@ -0,0 +1,26 @@
include_directories(
include
${REACTOS_SOURCE_DIR}/win32ss/include)
spec2def(gdi32_vista.dll gdi32_vista.spec ADD_IMPORTLIB)
list(APPEND SOURCE
dc.c)
add_library(gdi32_vista MODULE
${SOURCE}
gdi32_vista.rc
${CMAKE_CURRENT_BINARY_DIR}/gdi32_vista.def)
set_module_type(gdi32_vista
win32dll
ENTRYPOINT 0
UNICODE)
target_link_libraries(gdi32_vista win32ksys)
#add_importlibs(gdi32_vista user32 advapi32 kernel32 ntdll)
#add_pch(gdi32_vista include/precomp.h SOURCE)
add_dependencies(gdi32_vista psdk)
add_cd_file(TARGET gdi32_vista DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,26 @@
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#define NTOS_MODE_USER
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <ndk/rtlfuncs.h>
#include <wingdi.h>
#include <winddi.h>
#include <prntfont.h>
#include <ntgdityp.h>
#include <ntgdi.h>
/***********************************************************************
* D3DKMTCreateDCFromMemory (GDI32.@)
*/
DWORD WINAPI D3DKMTCreateDCFromMemory( D3DKMT_CREATEDCFROMMEMORY *desc )
{
return NtGdiDdDDICreateDCFromMemory( desc );
}
DWORD WINAPI D3DKMTDestroyDCFromMemory( const D3DKMT_DESTROYDCFROMMEMORY *desc )
{
return NtGdiDdDDIDestroyDCFromMemory( desc );
}

View file

@ -0,0 +1,5 @@
#define REACTOS_VERSION_DLL
#define REACTOS_STR_FILE_DESCRIPTION "GDI Client DLL"
#define REACTOS_STR_INTERNAL_NAME "gdi32_vista"
#define REACTOS_STR_ORIGINAL_FILENAME "gdi32_vista.dll"
#include <reactos/version.rc>

View file

@ -0,0 +1,2 @@
@ stdcall D3DKMTCreateDCFromMemory(ptr)
@ stdcall D3DKMTDestroyDCFromMemory(ptr)