TSDuck Version 3.16-1037 (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

TSDUCKDLL UString ts::CanonicalGUID (const ::GUID &guid)
 Get a "canonical" version of a GUID (Windows-specific). More...
 
TSDUCKDLL UString ts::CanonicalGUID (const UString &guid)
 Get a "canonical" version of a GUID string (Windows-specific). More...
 
TSDUCKDLL bool ts::ComExpose (::IUnknown *object, const ::IID &iid)
 Check if a COM object exposes an interface (Windows-specific). More...
 
TSDUCKDLL UString ts::ComMessage (::HRESULT status)
 Format the message for a COM status (Windows-specific). More...
 
TSDUCKDLL bool ts::ComSuccess (::HRESULT status, const UChar *message, Report &report)
 Check a COM status (Windows-specific). More...
 
TSDUCKDLL bool ts::ComSuccess (::HRESULT status, const UString &message, Report &report)
 Check a COM status (Windows-specific). More...
 
TSDUCKDLL UString ts::FormatGUID (const ::GUID &guid, bool with_braces=true)
 Format a GUID as string (Windows-specific). More...
 
TSDUCKDLL ::HANDLE ts::GetHandleFromObject (::IUnknown *obj, Report &report)
 Get the handle of a COM object (Windows-specific). More...
 
TSDUCKDLL 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...
 
TSDUCKDLL UString ts::NameGUID (const ::GUID &guid)
 Format a GUID as string and resolve a few known names (Windows-specific). More...
 
TSDUCKDLL UString ts::ToString (const ::VARIANT &s)
 Convert a COM string to Unicode string (Windows-specific). More...
 
TSDUCKDLL UString ts::ToString (const ::BSTR s)
 Convert a Windows string to Unicode string (Windows-specific). More...
 
TSDUCKDLL UString ts::ToString (const ::WCHAR *s)
 Convert a Windows string to Unicode string (Windows-specific). More...
 
TSDUCKDLL bool ts::WinCreateElevatedProcess (const UString &exeName, bool synchronous, Report &report)
 Start an application with elevated privileges (Windows-specific). More...
 
TSDUCKDLL UString ts::WinDeviceName (::HANDLE handle)
 Get the device or file name from a Windows handle (Windows-specific). More...
 
TSDUCKDLL 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).