VirtualBox

Changeset 92960 in vbox for trunk


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

iprt/nt/ntddk.h: Kludge for the W11 WDK where ntddk.h includes ntdef.h before sdkddkver.h and doesn't have the _WIN32_VER & NTDDI_VERSION set correctly when including it. So, we include sdkddkver.h ourselves before including ntddk.h. bugref:10116

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nt/ntddk.h

    r83782 r92960  
    5050# pragma warning(disable:4471) /* wdm.h(11057) : warning C4471: '_POOL_TYPE' : a forward declaration of an unscoped enumeration must have an underlying type (int assumed) */
    5151#endif
     52
     53/* Include the sdk/ddk version header so _WIN32_VER and the rest gets defined before ntdef.h is included,
     54   otherwise we'll miss out on DECLARE_GLOBAL_CONST_UNICODE_STRING and friends in the W10 SDKs. */
     55#define DECLSPEC_DEPRECATED_DDK
     56#include <sdkddkver.h>
     57
    5258/*RT_C_DECLS_BEGIN - no longer necessary it seems */
    5359#include <ntddk.h>
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