// // libtgvoip is free and unencumbered public domain software. // For more information, see http://unlicense.org or the UNLICENSE file // you should have received with this source code distribution. // #ifndef TGVOIP_WINDOWSSANDBOXUTILS_H #define TGVOIP_WINDOWSSANDBOXUTILS_H #include #include #ifndef TGVOIP_WP_SILVERLIGHT #include #endif #include #include using namespace Microsoft::WRL; namespace tgvoip { #ifndef TGVOIP_WP_SILVERLIGHT class ActivationHandler : public RuntimeClass< RuntimeClassFlags< ClassicCom >, FtmBase, IActivateAudioInterfaceCompletionHandler > { public: STDMETHOD(ActivateCompleted)(IActivateAudioInterfaceAsyncOperation *operation); ActivationHandler(HANDLE _event); HANDLE event; IAudioClient2* client; HRESULT actResult; }; #endif class WindowsSandboxUtils { public: static IAudioClient2* ActivateAudioDevice(const wchar_t* devID, HRESULT* callResult, HRESULT* actResult); }; } #endif //TGVOIP_WINDOWSSANDBOXUTILS_H