Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CWIN32Util Class Reference

#include <WIN32Util.h>

Public Member Functions

 CWIN32Util (void)
 
virtual ~CWIN32Util (void)
 

Static Public Member Functions

static char FirstDriveFromMask (ULONG unitmask)
 
static int GetDriveStatus (const std::string &strPath, bool bStatusEx=false)
 
static bool XBMCShellExecute (const std::string &strPath, bool bWaitForScriptExit=false)
 
static std::string GetResInfoString ()
 
static int GetDesktopColorDepth ()
 
static std::string GetSystemPath ()
 
static std::string GetProfilePath ()
 
static std::string UncToSmb (const std::string &strPath)
 
static std::string SmbToUnc (const std::string &strPath)
 
static bool AddExtraLongPathPrefix (std::wstring &path)
 
static bool RemoveExtraLongPathPrefix (std::wstring &path)
 
static std::wstring ConvertPathToWin32Form (const std::string &pathUtf8)
 
static std::wstring ConvertPathToWin32Form (const CURL &url)
 
static __time64_t fileTimeToTimeT (const __int64 ftimei64)
 
static __time64_t fileTimeToTimeT (const FILETIME &ftimeft)
 
static __time64_t fileTimeToTimeT (const LARGE_INTEGER &ftimeli)
 
static HRESULT ToggleTray (const char cDriveLetter='\0')
 
static HRESULT EjectTray (const char cDriveLetter='\0')
 
static HRESULT CloseTray (const char cDriveLetter='\0')
 
static BOOL IsCurrentUserLocalAdministrator ()
 
static void CropSource (CRect &src, CRect &dst, CRect target, UINT rotation=0)
 
static bool IsUsbDevice (const std::wstring &strWdrive)
 
static std::string WUSysMsg (DWORD dwError)
 
static bool SetThreadLocalLocale (bool enable=true)
 

Constructor & Destructor Documentation

◆ CWIN32Util()

CWIN32Util::CWIN32Util ( void  )

◆ ~CWIN32Util()

CWIN32Util::~CWIN32Util ( void  )
virtual

Member Function Documentation

◆ 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()

void CWIN32Util::CropSource ( CRect src,
CRect dst,
CRect  target,
UINT  rotation = 0 
)
static

◆ 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

◆ GetDriveStatus()

int CWIN32Util::GetDriveStatus ( const std::string &  strPath,
bool  bStatusEx = false 
)
static

◆ GetProfilePath()

std::string CWIN32Util::GetProfilePath ( )
static

◆ GetResInfoString()

std::string CWIN32Util::GetResInfoString ( )
static

◆ GetSystemPath()

std::string CWIN32Util::GetSystemPath ( )
static

◆ IsCurrentUserLocalAdministrator()

BOOL CWIN32Util::IsCurrentUserLocalAdministrator ( )
static

◆ IsUsbDevice()

bool CWIN32Util::IsUsbDevice ( const std::wstring &  strWdrive)
static

◆ RemoveExtraLongPathPrefix()

bool CWIN32Util::RemoveExtraLongPathPrefix ( std::wstring &  path)
static

◆ SetThreadLocalLocale()

bool CWIN32Util::SetThreadLocalLocale ( bool  enable = true)
static

◆ SmbToUnc()

std::string CWIN32Util::SmbToUnc ( const std::string &  strPath)
static

◆ ToggleTray()

HRESULT CWIN32Util::ToggleTray ( const char  cDriveLetter = '\0')
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: