#include <collection.h>
#include <ppltasks.h>
#include <wrl\implements.h>
#include <wrl\wrappers\corewrappers.h>
#include <Roerrorapi.h>
#include <queue>
#include <sstream>
#include <robuffer.h>
#include <mfapi.h>
#include <mfidl.h>
#include <Mferror.h>
#include <windows.media.h>
#include <windows.media.mediaproperties.h>
Go to the source code of this file.
|
#define | CHK(statement) {HRESULT _hr = (statement); if (FAILED(_hr)) { throw ref new Platform::COMException(_hr); };} |
|
#define | CHKNULL(p) {if ((p) == nullptr) { throw ref new Platform::NullReferenceException(L#p); };} |
|
#define | CHK_RETURN(statement) {hr = (statement); if (FAILED(hr)) { return hr; };} |
|
|
template<typename T , typename U > |
MW::ComPtr< T > | As (U^ in) |
|
template<typename T , typename U > |
Microsoft::WRL::ComPtr< T > | As (const Microsoft::WRL::ComPtr< U > &in) |
|
template<typename T , typename U > |
Microsoft::WRL::ComPtr< T > | As (U *in) |
|
unsigned char * | GetData (_In_ WSS::IBuffer^ buffer) |
|
template<size_t N> |
HRESULT | OriginateError (__in HRESULT hr, __in wchar_t const (&str)[N]) |
|
HRESULT | OriginateError (__in HRESULT hr) |
|
template<typename Lambda > |
HRESULT | ExceptionBoundary (Lambda &&lambda) |
|
delegate void | Media::MediaSampleHandler (MediaSample^ sample) |
|
◆ CHK
#define CHK |
( |
|
statement | ) |
{HRESULT _hr = (statement); if (FAILED(_hr)) { throw ref new Platform::COMException(_hr); };} |
◆ CHK_RETURN
#define CHK_RETURN |
( |
|
statement | ) |
{hr = (statement); if (FAILED(hr)) { return hr; };} |
◆ CHKNULL
#define CHKNULL |
( |
|
p | ) |
{if ((p) == nullptr) { throw ref new Platform::NullReferenceException(L#p); };} |
◆ As() [1/3]
template<typename T , typename U >
Microsoft::WRL::ComPtr< T > As |
( |
const Microsoft::WRL::ComPtr< U > & |
in | ) |
|
◆ As() [2/3]
template<typename T , typename U >
Microsoft::WRL::ComPtr< T > As |
( |
U * |
in | ) |
|
◆ As() [3/3]
template<typename T , typename U >
MW::ComPtr< T > As |
( |
U^ |
in | ) |
|
◆ ExceptionBoundary()
template<typename Lambda >
HRESULT ExceptionBoundary |
( |
Lambda && |
lambda | ) |
|
◆ GetData()
unsigned char * GetData |
( |
_In_ WSS::IBuffer^ |
buffer | ) |
|
|
inline |
◆ OriginateError() [1/2]
HRESULT OriginateError |
( |
__in HRESULT |
hr | ) |
|
|
inline |
◆ OriginateError() [2/2]
template<size_t N>
HRESULT OriginateError |
( |
__in HRESULT |
hr, |
|
|
__in wchar_t const (&) |
str[N] |
|
) |
| |