VirtualBox

Changeset 71294 in vbox


Ignore:
Timestamp:
Mar 10, 2018 12:06:43 AM (7 years ago)
Author:
vboxsync
Message:

IPRT: Added RTSystemGetNtBuildNo. bugref:9044

Location:
trunk
Files:
2 edited

Legend:

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

    r69105 r71294  
    257257RTDECL(bool) RTSystemIsInsideVM(void);
    258258
     259#ifdef RT_OS_WINDOWS
     260
     261/**
     262 * Get the Windows NT build number.
     263 *
     264 * @returns NT build number.
     265 *
     266 * @remarks Windows NT only.  Requires IPRT to be initialized.
     267 */
     268RTDECL(uint32_t) RTSystemGetNtBuildNo(void)
     269
     270#endif /* RT_OS_WINDOWS */
     271
    259272/** @} */
    260273
  • trunk/src/VBox/Runtime/r3/win/RTSystemQueryOSInfo-win.cpp

    r70215 r71294  
    341341}
    342342
     343
     344RTDECL(uint32_t) RTSystemGetNtBuildNo(void)
     345{
     346    return g_WinOsInfoEx.dwBuildNumber;
     347}
     348
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