BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bdls::OsUtil Struct Reference

#include <bdls_osutil.h>

Detailed Description

This struct provides a namespace for utility functions retrieving information about the operating system.

See bdls_osutil

Static Public Member Functions

static int getOsInfo (bsl::string *osName, bsl::string *osVersion, bsl::string *osPatch)
 
static int getOsInfo (std::string *osName, std::string *osVersion, std::string *osPatch)
 

Member Function Documentation

◆ getOsInfo() [1/2]

static int bdls::OsUtil::getOsInfo ( bsl::string osName,
bsl::string osVersion,
bsl::string osPatch 
)
static

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.

◆ getOsInfo() [2/2]

static int bdls::OsUtil::getOsInfo ( std::string *  osName,
std::string *  osVersion,
std::string *  osPatch 
)
static

The documentation for this struct was generated from the following file: