[#BloombergLP-bdls-OsUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::OsUtil
:relfileprefix: ../../
:mrdocs:

This `struct` provides a namespace for utility functions retrieving information about the operating system&period;

== Synopsis

Declared in `&lt;bdls&lowbar;osutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct OsUtil;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdls/OsUtil/getOsInfo-0c2.adoc[`getOsInfo`] 
| Load the operating system name, version name and patch name into the specified `osName`, `osVersion` and `osPatch` respectively&period; Return 0 on success and a non&hyphen;zero value otherwise&period; The loaded values may represent an emulation provided for the current process (see &quot;manifest&hyphen;based behavior&quot; in Windows programming documentation for an example) and therefore are not suitable for determining supported features or the real environment&sol;version&period; If you need to determine the presence of certain features please consult the documentation of the operating systems you need to support&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
