28 explicit operator bool()
const {
30 return handle !=
nullptr && handle != INVALID_HANDLE_VALUE;
Unique pointer wrapper with customizable pointer and deleter types.
Definition utility.h:820
pointer get()
Return the currently wrapped value or handle.
Definition utility.h:948
void info_message(const std::wstring &message)
Forward an informational NVPrefs message to the logger.
Definition nvprefs_common.cpp:17
void error_message(const std::wstring &message)
Forward an NVPrefs error message to the logger.
Definition nvprefs_common.cpp:31
nvprefs_options get_nvprefs_options()
Get nvprefs options.
Definition nvprefs_common.cpp:45
Parsed command-line options for the NVIDIA preferences helper.
Definition nvprefs_common.h:90
bool sunshine_high_power_mode
Whether NVIDIA high-power mode should be enabled for Sunshine.
Definition nvprefs_common.h:92
bool opengl_vulkan_on_dxgi
Whether NVIDIA OpenGL/Vulkan-on-DXGI should be enabled.
Definition nvprefs_common.h:91
Owning Windows HANDLE wrapper that closes handles automatically.
Definition nvprefs_common.h:22
Deleter for memory allocated by Windows LocalAlloc APIs.
Definition nvprefs_common.h:37
void operator()(void *p)
Free memory allocated by Windows local-memory APIs.
Definition nvprefs_common.h:43
Declarations for utility functions.