JUCE  v5.1.1-3-g1a0b28c73
JUCE API
WinRTWrapper Class Reference

#include <juce_win32_WinRTWrapper.h>

Inheritance diagram for WinRTWrapper:
Collaboration diagram for WinRTWrapper:

Public Member Functions

 ~WinRTWrapper ()
 
template<class ComClass >
ComSmartPtr< ComClassgetWRLFactory (const wchar_t *runtimeClassID)
 
String hStringToString (HSTRING hstr)
 
bool isInitialised () const noexcept
 
 juce_DeclareSingleton (WinRTWrapper, true) class ScopedHString
 

Static Public Member Functions

static void deleteAll ()
 Deletes all extant objects. More...
 

Private Types

typedef HRESULT(WINAPI * RoGetActivationFactoryFuncPtr) (HSTRING, REFIID, void **)
 
typedef HRESULT(WINAPI * RoInitializeFuncPtr) (int)
 
typedef HRESULT(WINAPI * WindowsCreateStringFuncPtr) (LPCWSTR, UINT32, HSTRING *)
 
typedef HRESULT(WINAPI * WindowsDeleteStringFuncPtr) (HSTRING)
 
typedef PCWSTR(WINAPI * WindowsGetStringRawBufferFuncPtr) (HSTRING, UINT32 *)
 

Private Member Functions

 WinRTWrapper ()
 

Private Attributes

WindowsCreateStringFuncPtr createHString = nullptr
 
WindowsDeleteStringFuncPtr deleteHString = nullptr
 
WindowsGetStringRawBufferFuncPtr getHStringRawBuffer = nullptr
 
bool initialised = false
 
RoGetActivationFactoryFuncPtr roGetActivationFactory = nullptr
 
RoInitializeFuncPtr roInitialize = nullptr
 
HMODULE winRTHandle = nullptr
 

Member Typedef Documentation

◆ RoGetActivationFactoryFuncPtr

typedef HRESULT(WINAPI* WinRTWrapper::RoGetActivationFactoryFuncPtr) (HSTRING, REFIID, void **)
private

◆ RoInitializeFuncPtr

typedef HRESULT(WINAPI* WinRTWrapper::RoInitializeFuncPtr) (int)
private

◆ WindowsCreateStringFuncPtr

typedef HRESULT(WINAPI* WinRTWrapper::WindowsCreateStringFuncPtr) (LPCWSTR, UINT32, HSTRING *)
private

◆ WindowsDeleteStringFuncPtr

typedef HRESULT(WINAPI* WinRTWrapper::WindowsDeleteStringFuncPtr) (HSTRING)
private

◆ WindowsGetStringRawBufferFuncPtr

typedef PCWSTR(WINAPI* WinRTWrapper::WindowsGetStringRawBufferFuncPtr) (HSTRING, UINT32 *)
private

Constructor & Destructor Documentation

◆ ~WinRTWrapper()

WinRTWrapper::~WinRTWrapper ( )
inline

References winRTHandle.

◆ WinRTWrapper()

WinRTWrapper::WinRTWrapper ( )
inlineprivate

Member Function Documentation

◆ deleteAll()

static void DeletedAtShutdown::deleteAll ( )
staticinherited

Deletes all extant objects.

This shouldn't be used by applications, as it's called automatically in the shutdown code of the JUCEApplicationBase class.

◆ getWRLFactory()

template<class ComClass >
ComSmartPtr<ComClass> WinRTWrapper::getWRLFactory ( const wchar_t *  runtimeClassID)
inline

◆ hStringToString()

String WinRTWrapper::hStringToString ( HSTRING  hstr)
inline

◆ isInitialised()

bool WinRTWrapper::isInitialised ( ) const
inlinenoexcept

◆ juce_DeclareSingleton()

WinRTWrapper::juce_DeclareSingleton ( WinRTWrapper  ,
true   
)
inline

Member Data Documentation

◆ createHString

WindowsCreateStringFuncPtr WinRTWrapper::createHString = nullptr
private

Referenced by WinRTWrapper().

◆ deleteHString

WindowsDeleteStringFuncPtr WinRTWrapper::deleteHString = nullptr
private

Referenced by WinRTWrapper().

◆ getHStringRawBuffer

WindowsGetStringRawBufferFuncPtr WinRTWrapper::getHStringRawBuffer = nullptr
private

Referenced by hStringToString(), and WinRTWrapper().

◆ initialised

bool WinRTWrapper::initialised = false
private

Referenced by isInitialised(), and WinRTWrapper().

◆ roGetActivationFactory

RoGetActivationFactoryFuncPtr WinRTWrapper::roGetActivationFactory = nullptr
private

Referenced by getWRLFactory(), and WinRTWrapper().

◆ roInitialize

RoInitializeFuncPtr WinRTWrapper::roInitialize = nullptr
private

Referenced by WinRTWrapper().

◆ winRTHandle

HMODULE WinRTWrapper::winRTHandle = nullptr
private

Referenced by WinRTWrapper(), and ~WinRTWrapper().


The documentation for this class was generated from the following file: