xentara-utils v1.0
Xentara utilities library
xentara::utils::windows Namespace Reference

Windows functionality. More...

Namespaces

namespace  com
 Windows COM functionality.
 
namespace  path
 Filesystem path functionality.
 
namespace  wmi
 Windows WMI functionality.
 

Classes

class  AbstractHresultErrorCategory
 Base class for error categories for Windows HRESULT values. More...
 
class  Handle
 A Windows handle that closes itself on destruct. More...
 
class  RegistryKey
 A Windows registry key handle that closes itself on destruct. More...
 
class  Socket
 A Windows socket that closes itself on destruct. More...
 

Concepts

concept  RegistryValue
 A concept that describes C++ data types used for registry values.
 

Functions

auto retainConsole () -> void
 Make sure that the console is not closed after the application exits. More...
 
auto hresultErrorCategory () -> const std::error_category &
 Returns the global error category for use with Windows HRESULT values. More...
 

Detailed Description

Windows functionality.

This namespace contains Windows-specific functionality.

Function Documentation

◆ hresultErrorCategory()

auto xentara::utils::windows::hresultErrorCategory ( ) -> const std::error_category &

Returns the global error category for use with Windows HRESULT values.

Returns
The category.

◆ retainConsole()

auto xentara::utils::windows::retainConsole ( ) -> void

Make sure that the console is not closed after the application exits.

This function starts a second process in the Windows console, if it would otherwise close once the application has terminated. Use this function to enable the user to read the console output of the application even if it was started from the expolorer.