#include <WIN32Util.h>
◆ CWIN32Util()
CWIN32Util::CWIN32Util |
( |
void | | ) |
|
◆ ~CWIN32Util()
CWIN32Util::~CWIN32Util |
( |
void | | ) |
|
|
virtual |
◆ AddExtraLongPathPrefix()
bool CWIN32Util::AddExtraLongPathPrefix |
( |
std::wstring & | path | ) |
|
|
static |
◆ CloseTray()
HRESULT CWIN32Util::CloseTray |
( |
const char | cDriveLetter = '\0' | ) |
|
|
static |
◆ ConvertPathToWin32Form() [1/2]
std::wstring CWIN32Util::ConvertPathToWin32Form |
( |
const CURL & | url | ) |
|
|
static |
◆ ConvertPathToWin32Form() [2/2]
std::wstring CWIN32Util::ConvertPathToWin32Form |
( |
const std::string & | pathUtf8 | ) |
|
|
static |
◆ CropSource()
◆ EjectTray()
HRESULT CWIN32Util::EjectTray |
( |
const char | cDriveLetter = '\0' | ) |
|
|
static |
◆ fileTimeToTimeT() [1/3]
static __time64_t CWIN32Util::fileTimeToTimeT |
( |
const __int64 | ftimei64 | ) |
|
|
inlinestatic |
◆ fileTimeToTimeT() [2/3]
__time64_t CWIN32Util::fileTimeToTimeT |
( |
const FILETIME & | ftimeft | ) |
|
|
static |
◆ fileTimeToTimeT() [3/3]
__time64_t CWIN32Util::fileTimeToTimeT |
( |
const LARGE_INTEGER & | ftimeli | ) |
|
|
static |
◆ FirstDriveFromMask()
char CWIN32Util::FirstDriveFromMask |
( |
ULONG | unitmask | ) |
|
|
static |
◆ GetDesktopColorDepth()
int CWIN32Util::GetDesktopColorDepth |
( |
| ) |
|
|
static |
◆ GetDisplayFriendlyName()
std::wstring CWIN32Util::GetDisplayFriendlyName |
( |
const std::wstring & | GdiDeviceName | ) |
|
|
static |
◆ GetDriveStatus()
int CWIN32Util::GetDriveStatus |
( |
const std::string & | strPath, |
|
|
bool | bStatusEx = false ) |
|
static |
◆ GetProfilePath()
std::string CWIN32Util::GetProfilePath |
( |
const bool | platformDirectories | ) |
|
|
static |
◆ GetResInfoString()
std::string CWIN32Util::GetResInfoString |
( |
| ) |
|
|
static |
◆ GetSystemMemorySize()
size_t CWIN32Util::GetSystemMemorySize |
( |
| ) |
|
|
static |
◆ GetSystemPath()
std::string CWIN32Util::GetSystemPath |
( |
| ) |
|
|
static |
◆ GetSystemSdrWhiteLevel()
bool CWIN32Util::GetSystemSdrWhiteLevel |
( |
const std::wstring & | gdiDeviceName, |
|
|
float * | sdrWhiteLevel ) |
|
static |
Retrieve from the system the max luminance of SDR content in HDR.
Retrieve from the system the max luminance of SDR content in HDR. Note: always returns 80 nits when the screen is in SDR mode.
- Parameters
-
gdiDeviceName | The screen to retrieve the information for |
sdrWhiteLevel | Max luminance in nits, clamped to 10000 |
- Returns
- true if a value could be read from the system and copied to sdrWhiteLevel, false otherwise
◆ GetVideoDriverInfo()
VideoDriverInfo CWIN32Util::GetVideoDriverInfo |
( |
const UINT | vendorId, |
|
|
const std::wstring & | driverDesc ) |
|
static |
◆ GetWindowsHDRStatus()
◆ IsCurrentUserLocalAdministrator()
BOOL CWIN32Util::IsCurrentUserLocalAdministrator |
( |
| ) |
|
|
static |
◆ IsDriverVersionAtLeast()
bool CWIN32Util::IsDriverVersionAtLeast |
( |
const std::string & | version1, |
|
|
const std::string & | version2 ) |
|
static |
Compare two Windows driver versions (xx.xx.xx.xx string format)
- Parameters
-
version1 | First version to compare |
version2 | Second version to compare |
- Returns
- true when version1 is greater or equal to version2. Undefined results when the strings are not formatted properly.
◆ PlatformSyslog()
void CWIN32Util::PlatformSyslog |
( |
| ) |
|
|
static |
◆ RemoveExtraLongPathPrefix()
bool CWIN32Util::RemoveExtraLongPathPrefix |
( |
std::wstring & | path | ) |
|
|
static |
◆ SetThreadLocalLocale()
bool CWIN32Util::SetThreadLocalLocale |
( |
bool | enable = true | ) |
|
|
static |
◆ SetThreadName()
bool CWIN32Util::SetThreadName |
( |
const HANDLE | handle, |
|
|
const std::string & | name ) |
|
static |
Set the thread name using SetThreadDescription when available.
- Parameters
-
handle | handle of the thread |
name | name of the thread |
- Returns
- true if the name was successfully set, false otherwise (API not supported or API failure)
◆ SmbToUnc()
std::string CWIN32Util::SmbToUnc |
( |
const std::string & | strPath | ) |
|
|
static |
◆ ToggleTray()
HRESULT CWIN32Util::ToggleTray |
( |
const char | cDriveLetter = '\0' | ) |
|
|
static |
◆ ToggleWindowsHDR()
HDR_STATUS CWIN32Util::ToggleWindowsHDR |
( |
DXGI_MODE_DESC & | modeDesc | ) |
|
|
static |
◆ UncToSmb()
std::string CWIN32Util::UncToSmb |
( |
const std::string & | strPath | ) |
|
|
static |
◆ WUSysMsg()
std::string CWIN32Util::WUSysMsg |
( |
DWORD | dwError | ) |
|
|
static |
◆ XBMCShellExecute()
bool CWIN32Util::XBMCShellExecute |
( |
const std::string & | strPath, |
|
|
bool | bWaitForScriptExit = false ) |
|
static |
- Todo
- Pause music and video playback
The documentation for this class was generated from the following files: