[#BloombergLP-bdls-OsUtil-getOsInfo-0c2] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/OsUtil.adoc[OsUtil]::getOsInfo :relfileprefix: ../../../ :mrdocs: Load the operating system name, version name and patch name into the specified `osName`, `osVersion` and `osPatch` respectively. Return 0 on success and a non‐zero value otherwise. The loaded values may represent an emulation provided for the current process (see "manifest‐based behavior" in Windows programming documentation for an example) and therefore are not suitable for determining supported features or the real environment/version. If you need to determine the presence of certain features please consult the documentation of the operating systems you need to support. == Synopses Declared in `<bdls_osutil.h>` Load the operating system name, version name and patch name into the specified `osName`, `osVersion` and `osPatch` respectively. Return 0 on success and a non‐zero value otherwise. The loaded values may represent an emulation provided for the current process (see "manifest‐based behavior" in Windows programming documentation for an example) and therefore are not suitable for determining supported features or the real environment/version. If you need to determine the presence of certain features please consult the documentation of the operating systems you need to support. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdls/OsUtil/getOsInfo-03.adoc[getOsInfo]( xref:bsl/string.adoc[bsl::string]* osName, xref:bsl/string.adoc[bsl::string]* osVersion, xref:bsl/string.adoc[bsl::string]* osPatch); ---- [.small]#xref:BloombergLP/bdls/OsUtil/getOsInfo-03.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdls/OsUtil/getOsInfo-07.adoc[getOsInfo]( std::pmr::string* osName, std::pmr::string* osVersion, std::pmr::string* osPatch); ---- [.small]#xref:BloombergLP/bdls/OsUtil/getOsInfo-07.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdls/OsUtil/getOsInfo-0c3.adoc[getOsInfo]( std::string* osName, std::string* osVersion, std::string* osPatch); ---- [.small]#xref:BloombergLP/bdls/OsUtil/getOsInfo-0c3.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#