Skip to content

Commit

Permalink
[WINESYNC][SDK][DWMAPI] Import DWMAPI from WINE 8-14
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Sep 15, 2023
1 parent 24acbd2 commit 3be6388
Show file tree
Hide file tree
Showing 8 changed files with 547 additions and 2 deletions.
4 changes: 4 additions & 0 deletions dll/win32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -260,3 +260,7 @@ add_subdirectory(xinput1_3)
add_subdirectory(xinput9_1_0)
add_subdirectory(xmllite)
add_subdirectory(xolehlp)

if(DLL_EXPORT_VERSION GREATER_EQUAL 0x600)
add_subdirectory(dwmapi)
endif()
19 changes: 19 additions & 0 deletions dll/win32/dwmapi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

add_definitions(-D__WINESRC__)

include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
spec2def(dwmapi.dll dwmapi.spec)

list(APPEND SOURCE
dwmapi_main.c)

add_library(dwmapi MODULE
${SOURCE}
version.rc
${CMAKE_CURRENT_BINARY_DIR}/dwmapi.def
${CMAKE_CURRENT_BINARY_DIR}/dwmapi_stubs.c)

set_module_type(dwmapi win32dll UNICODE ENTRYPOINT 0)
target_link_libraries(dwmapi uuid wine)
add_importlibs(dwmapi user32 kernel32 ntdll)
add_cd_file(TARGET dwmapi DESTINATION reactos/system32 FOR all)
67 changes: 67 additions & 0 deletions dll/win32/dwmapi/dwmapi.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
100 stub DwmpDxGetWindowSharedSurface
101 stub DwmpDxUpdateWindowSharedSurface
102 stdcall DwmEnableComposition(long)
103 stub -noname DwmpRestartComposition
104 stub -noname DwmpSetColorizationColor
105 stub -noname DwmpStartOrStopFlip3D
106 stub -noname DwmpIsCompositionCapable
107 stub -noname DwmpGetGlobalState
108 stub -noname DwmpEnableRedirection
109 stub -noname DwmpOpenGraphicsStream
110 stub -noname DwmpCloseGraphicsStream
112 stub -noname DwmpSetGraphicsStreamTransformHint
113 stub -noname DwmpActivateLivePreview
114 stub -noname DwmpQueryThumbnailType
115 stub -noname DwmpStartupViaUserInit
118 stub -noname DwmpGetAssessment
119 stub -noname DwmpGetAssessmentUsage
120 stub -noname DwmpSetAssessmentUsage
121 stub -noname DwmpIsSessionDWM
124 stub -noname DwmpRegisterThumbnail
125 stub DwmpDxBindSwapChain
126 stub DwmpDxUnbindSwapChain
127 stdcall -noname DwmpGetColorizationParameters(ptr)
128 stub DwmpDxgiIsThreadDesktopComposited
129 stub -noname DwmpDxgiDisableRedirection
130 stub -noname DwmpDxgiEnableRedirection
131 stub -noname DwmpSetColorizationParameters
132 stub -noname DwmpGetCompositionTimingInfoEx
133 stub DwmpDxUpdateWindowRedirectionBltSurface
134 stub -noname DwmpDxSetContentHostingInformation
135 stub DwmpRenderFlick
136 stub DwmpAllocateSecurityDescriptor
137 stub DwmpFreeSecurityDescriptor
143 stub DwmpEnableDDASupport
156 stub DwmTetherTextContact

# @ stdcall -private DllCanUnloadNow()
# @ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall DwmAttachMilContent(long)
@ stdcall DwmDefWindowProc(long long long long ptr)
@ stdcall DwmDetachMilContent(long)
@ stdcall DwmEnableBlurBehindWindow(ptr ptr)
@ stdcall DwmEnableMMCSS(long)
@ stdcall DwmExtendFrameIntoClientArea(long ptr)
@ stdcall DwmFlush()
@ stdcall DwmGetColorizationColor(ptr ptr)
@ stdcall DwmGetCompositionTimingInfo(long ptr)
@ stdcall DwmGetGraphicsStreamClient(long ptr)
@ stdcall DwmGetGraphicsStreamTransformHint(long ptr)
@ stdcall DwmGetTransportAttributes(ptr ptr ptr)
@ stdcall DwmGetWindowAttribute(ptr long ptr long)
@ stdcall DwmInvalidateIconicBitmaps(ptr)
@ stdcall DwmIsCompositionEnabled(ptr)
@ stub DwmModifyPreviousDxFrameDuration
@ stub DwmQueryThumbnailSourceSize
@ stdcall DwmRegisterThumbnail(long long ptr)
# @ stub DwmRenderGesture
@ stub DwmSetDxFrameDuration
@ stdcall DwmSetIconicLivePreviewBitmap(long long ptr long)
@ stdcall DwmSetIconicThumbnail(long long long)
@ stdcall DwmSetPresentParameters(ptr ptr)
@ stdcall DwmSetWindowAttribute(long long ptr long)
# @ stub DwmShowContact
# @ stub DwmTetherContact
# @ stub DwmTransitionOwnedWindow
@ stdcall DwmUnregisterThumbnail(long)
@ stdcall DwmUpdateThumbnailProperties(ptr ptr)
Loading

0 comments on commit 3be6388

Please sign in to comment.