JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::WinRTWrapper Class Reference

#include <juce_win32_WinRTWrapper.h>

Inheritance diagram for juce::WinRTWrapper:
Collaboration diagram for juce::WinRTWrapper:

Classes

class  ComPtr
 
class  ScopedHString
 

Public Member Functions

 ~WinRTWrapper ()
 
template<class ComClass >
ComPtr< ComClassactivateInstance (const wchar_t *runtimeClassID, REFCLSID classUUID)
 
template<class ComClass >
ComPtr< ComClassgetWRLFactory (const wchar_t *runtimeClassID)
 
String hStringToString (HSTRING)
 
bool isInitialised () const noexcept
 

Static Public Member Functions

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

Private Types

typedef HRESULT(WINAPI * RoActivateInstanceFuncPtr) (HSTRING, IInspectable **)
 
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
 
RoActivateInstanceFuncPtr roActivateInstance = nullptr
 
RoGetActivationFactoryFuncPtr roGetActivationFactory = nullptr
 
RoInitializeFuncPtr roInitialize = nullptr
 
HMODULE winRTHandle = nullptr
 

Member Typedef Documentation

◆ RoActivateInstanceFuncPtr

typedef HRESULT(WINAPI* juce::WinRTWrapper::RoActivateInstanceFuncPtr) (HSTRING, IInspectable **)
private

◆ RoGetActivationFactoryFuncPtr

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

◆ RoInitializeFuncPtr

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

◆ WindowsCreateStringFuncPtr

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

◆ WindowsDeleteStringFuncPtr

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

◆ WindowsGetStringRawBufferFuncPtr

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

Constructor & Destructor Documentation

◆ ~WinRTWrapper()

juce::WinRTWrapper::~WinRTWrapper ( )

◆ WinRTWrapper()

juce::WinRTWrapper::WinRTWrapper ( )
private

Referenced by getWRLFactory().

Member Function Documentation

◆ activateInstance()

template<class ComClass >
ComPtr<ComClass> juce::WinRTWrapper::activateInstance ( const wchar_t *  runtimeClassID,
REFCLSID  classUUID 
)
inline

◆ deleteAll()

static void juce::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 >
ComPtr<ComClass> juce::WinRTWrapper::getWRLFactory ( const wchar_t *  runtimeClassID)
inline

◆ hStringToString()

String juce::WinRTWrapper::hStringToString ( HSTRING  )

◆ isInitialised()

bool juce::WinRTWrapper::isInitialised ( ) const
inlinenoexcept

References initialised.

Referenced by activateInstance(), and getWRLFactory().

Member Data Documentation

◆ createHString

WindowsCreateStringFuncPtr juce::WinRTWrapper::createHString = nullptr
private

◆ deleteHString

WindowsDeleteStringFuncPtr juce::WinRTWrapper::deleteHString = nullptr
private

◆ getHStringRawBuffer

WindowsGetStringRawBufferFuncPtr juce::WinRTWrapper::getHStringRawBuffer = nullptr
private

◆ initialised

bool juce::WinRTWrapper::initialised = false
private

Referenced by isInitialised().

◆ roActivateInstance

RoActivateInstanceFuncPtr juce::WinRTWrapper::roActivateInstance = nullptr
private

Referenced by activateInstance().

◆ roGetActivationFactory

RoGetActivationFactoryFuncPtr juce::WinRTWrapper::roGetActivationFactory = nullptr
private

Referenced by getWRLFactory().

◆ roInitialize

RoInitializeFuncPtr juce::WinRTWrapper::roInitialize = nullptr
private

◆ winRTHandle

HMODULE juce::WinRTWrapper::winRTHandle = nullptr
private

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