Changeset 48070 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispKmt.cpp
- Timestamp:
- Aug 26, 2013 6:13:22 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispKmt.cpp
r46593 r48070 17 17 */ 18 18 19 #include "VBoxDispD3DCmn.h" 19 #include "VBoxDispD3DBase.h" 20 #include "VBoxDispKmt.h" 21 22 #include <iprt/assert.h> 23 #include <iprt/log.h> 20 24 21 25 #ifndef NT_SUCCESS … … 103 107 Log((__FUNCTION__": pfnD3DKMTUnlock = %p\n", pCallbacks->pfnD3DKMTUnlock)); 104 108 bSupported &= !!(pCallbacks->pfnD3DKMTUnlock); 109 110 pCallbacks->pfnD3DKMTInvalidateActiveVidPn = (PFND3DKMT_INVALIDATEACTIVEVIDPN)GetProcAddress(pCallbacks->hGdi32, "D3DKMTInvalidateActiveVidPn"); 111 Log((__FUNCTION__": pfnD3DKMTInvalidateActiveVidPn = %p\n", pCallbacks->pfnD3DKMTInvalidateActiveVidPn)); 112 bSupported &= !!(pCallbacks->pfnD3DKMTInvalidateActiveVidPn); 113 114 pCallbacks->pfnD3DKMTPollDisplayChildren = (PFND3DKMT_POLLDISPLAYCHILDREN)GetProcAddress(pCallbacks->hGdi32, "D3DKMTPollDisplayChildren"); 115 Log((__FUNCTION__": pfnD3DKMTPollDisplayChildren = %p\n", pCallbacks->pfnD3DKMTPollDisplayChildren)); 116 bSupported &= !!(pCallbacks->pfnD3DKMTPollDisplayChildren); 105 117 106 118 pCallbacks->pfnD3DKMTEnumAdapters = (PFND3DKMT_ENUMADAPTERS)GetProcAddress(pCallbacks->hGdi32, "D3DKMTEnumAdapters"); … … 204 216 } 205 217 206 static HRESULT vboxDispKmtOpenAdapterViaHdc( PVBOXDISPKMT_CALLBACKSpCallbacks, PVBOXDISPKMT_ADAPTER pAdapter)218 static HRESULT vboxDispKmtOpenAdapterViaHdc(const VBOXDISPKMT_CALLBACKS *pCallbacks, PVBOXDISPKMT_ADAPTER pAdapter) 207 219 { 208 220 D3DKMT_OPENADAPTERFROMHDC OpenAdapterData = {0}; … … 232 244 } 233 245 234 static HRESULT vboxDispKmtOpenAdapterViaLuid( PVBOXDISPKMT_CALLBACKSpCallbacks, PVBOXDISPKMT_ADAPTER pAdapter)246 static HRESULT vboxDispKmtOpenAdapterViaLuid(const VBOXDISPKMT_CALLBACKS *pCallbacks, PVBOXDISPKMT_ADAPTER pAdapter) 235 247 { 236 248 if (pCallbacks->enmVersion < VBOXDISPKMT_CALLBACKS_VERSION_WIN8) … … 281 293 } 282 294 283 HRESULT vboxDispKmtOpenAdapter( PVBOXDISPKMT_CALLBACKSpCallbacks, PVBOXDISPKMT_ADAPTER pAdapter)295 HRESULT vboxDispKmtOpenAdapter(const VBOXDISPKMT_CALLBACKS *pCallbacks, PVBOXDISPKMT_ADAPTER pAdapter) 284 296 { 285 297 HRESULT hr = vboxDispKmtOpenAdapterViaHdc(pCallbacks, pAdapter);
Note:
See TracChangeset
for help on using the changeset viewer.