VirtualBox

Ignore:
Timestamp:
Dec 16, 2021 9:50:52 AM (3 years ago)
Author:
vboxsync
Message:

GA/wddm: Don't include d3dkmthk directly, always via the clean iprt wrapper. Guard the typedefs taken windows 8 in VBoxDispKmt.h to prevent errors due to duplications when using W8+ WDKs. bugref:10116

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared/VBoxDispKmt.h

    r85121 r92964  
    2222#endif
    2323
    24 #include <D3dkmthk.h>
     24#include <iprt/win/d3dkmthk.h>
    2525
    2626#include "../../../common/wddm/VBoxMPIf.h"
     27
     28#ifndef DXGKDDI_INTERFACE_VERSION_WIN8
     29# define DXGKDDI_INTERFACE_VERSION_WIN8 0x300e
     30#endif
     31#if DXGKDDI_INTERFACE_VERSION < DXGKDDI_INTERFACE_VERSION_WIN8
    2732
    2833/* win8 release preview-specific stuff */
     
    3540} D3DKMT_ADAPTERINFO;
    3641
    37 #define MAX_ENUM_ADAPTERS 16
     42# define MAX_ENUM_ADAPTERS 16
    3843
    3944typedef struct _D3DKMT_ENUMADAPTERS
     
    5257
    5358typedef DECLCALLBACKPTR_EX(NTSTATUS, APIENTRY, PFND3DKMT_OPENADAPTERFROMLUID,(IN OUT D3DKMT_OPENADAPTERFROMLUID *));
    54 /* END OF win8 release preview-specific stuff */
     59
     60#endif /* DXGKDDI_INTERFACE_VERSION < DXGKDDI_INTERFACE_VERSION_WIN8  */
    5561
    5662typedef enum
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette