VirtualBox

Changeset 105786 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Aug 21, 2024 5:27:35 PM (9 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164498
Message:

IPRT: Added RTSystemQueryNtFeatureEnabled() API to query Windows (NT) features + testcase. Also includes internal code for querying Windows registry values. bugref:10753

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/system.h

    r100307 r105786  
    399399RTDECL(uint8_t) RTSystemGetNtProductType(void);
    400400
     401/**
     402 * Windows NT feature types.
     403 */
     404typedef enum RTSYSNTFEATURE
     405{
     406    /** Invalid feature. */
     407    RTSYSNTFEATURE_INVALID = 0,
     408    /** Memory integrity is a feature of the Core Isolation facility.
     409     *  Introduced in Windows 10. */
     410    RTSYSNTFEATURE_CORE_ISOLATION_MEMORY_INTEGRITY,
     411    /** The usual 32-bit hack.  */
     412    RTSYSNTFEATURE_32_BIT_HACK = 0x7fffffff
     413} RTSYSNTFEATURE;
     414/** Pointer to a Windows NT feature type. */
     415typedef RTSYSNTFEATURE *PRTSYSNTFEATURE;
     416
     417/**
     418 * Queries whether an NT feature is enabled or not.
     419 *
     420 * @returns IPRT status code.
     421 * @retval  VERR_NOT_SUPPORTED if the feature is not supported on this platform.
     422 * @param   enmFeature  Feature to query enabled status for.
     423 * @param   pfEnabled   Where to return the enabled status on success.
     424 */
     425RTDECL(int) RTSystemQueryNtFeatureEnabled(RTSYSNTFEATURE enmFeature, bool *pfEnabled);
     426
    401427#endif /* RT_OS_WINDOWS */
    402428
Note: See TracChangeset for help on using the changeset viewer.

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