VirtualBox

Changeset 95698 in vbox


Ignore:
Timestamp:
Jul 18, 2022 9:49:17 AM (2 years ago)
Author:
vboxsync
Message:

IPRT: Added RTSystemGetNtProductType. bugref:8691

Location:
trunk
Files:
2 edited

Legend:

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

    r93115 r95698  
    355355RTDECL(uint64_t) RTSystemGetNtVersion(void);
    356356
     357/**
     358 * Get the Windows NT product type (OSVERSIONINFOW::wProductType).
     359 */
     360RTDECL(uint8_t) RTSystemGetNtProductType(void);
     361
    357362#endif /* RT_OS_WINDOWS */
    358363
  • trunk/src/VBox/Runtime/r3/win/system-get-nt-xxx-win.cpp

    r93115 r95698  
    5050}
    5151
     52
     53RTDECL(uint8_t) RTSystemGetNtProductType(void)
     54{
     55    Assert(g_WinOsInfoEx.dwOSVersionInfoSize > 0);
     56    return g_WinOsInfoEx.wProductType; /* It's a byte, not a word as 'w' normally indicates. (Baka Maikurosofuto!) */
     57}
     58
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