TSDuck Version 3.22-1919 (TSDuck - The MPEG Transport Stream Toolkit)
tsWinUtils.h File Reference

Utilities for Windows and Common Object Model (COM). More...

Namespaces

 ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Functions

UString ts::CanonicalGUID (const ::GUID &guid)
 Get a "canonical" version of a GUID (Windows-specific). More...
 
UString ts::CanonicalGUID (const UString &guid)
 Get a "canonical" version of a GUID string (Windows-specific). More...
 
bool ts::ComExpose (::IUnknown *object, const ::IID &iid)
 Check if a COM object exposes an interface (Windows-specific). More...
 
UString ts::ComMessage (::HRESULT status)
 Format the message for a COM status (Windows-specific). More...
 
bool ts::ComSuccess (::HRESULT status, const UChar *message, Report &report)
 Check a COM status (Windows-specific). More...
 
bool ts::ComSuccess (::HRESULT status, const UString &message, Report &report)
 Check a COM status (Windows-specific). More...
 
UString ts::FormatGUID (const ::GUID &guid, bool with_braces=true)
 Format a GUID as string (Windows-specific). More...
 
::HANDLE ts::GetHandleFromObject (::IUnknown *obj, Report &report)
 Get the handle of a COM object (Windows-specific). More...
 
UString ts::GetStringPropertyBag (::IMoniker *moniker, const ::OLECHAR *property_name, Report &report)
 Get a string property from the "property bag" of a COM object (Windows-specific). More...
 
UString ts::NameGUID (const ::GUID &guid)
 Format a GUID as string and resolve a few known names (Windows-specific). More...
 
UString ts::ToString (const ::VARIANT &s)
 Convert a COM string to Unicode string (Windows-specific). More...
 
UString ts::ToString (const ::BSTR s)
 Convert a Windows string to Unicode string (Windows-specific). More...
 
UString ts::ToString (const ::WCHAR *s)
 Convert a Windows string to Unicode string (Windows-specific). More...
 
bool ts::WinCreateElevatedProcess (const UString &exeName, bool synchronous, Report &report)
 Start an application with elevated privileges (Windows-specific). More...
 
UString ts::WinDeviceName (::HANDLE handle)
 Get the device or file name from a Windows handle (Windows-specific). More...
 
UString ts::WinErrorMessage (::DWORD code, const UString &moduleName=UString(), ::DWORD minModuleCode=std::numeric_limits<::DWORD >::min(), ::DWORD maxModuleCode=std::numeric_limits<::DWORD >::max())
 Format a Windows error message (Windows-specific). More...
 

Detailed Description

Utilities for Windows and Common Object Model (COM).