swift-cwinrt/Sources/CWinRT/include/RestrictedErrorInfo.h

58 lines
1.9 KiB
C

// The real restrictederrorinfo.h will provide different definitions in C vs C++ compilation mode.
// Override it with ours so we ensure we get the C definitions.
// No pragma once, we might include this twice (once for the regular definitions, once for the workaround)
#include <combaseapi.h>
#ifndef __IRestrictedErrorInfo_FWD_DEFINED__
#define __IRestrictedErrorInfo_FWD_DEFINED__
typedef interface IRestrictedErrorInfo IRestrictedErrorInfo;
#endif
#ifndef __IRestrictedErrorInfo_INTERFACE_DEFINED__
#define __IRestrictedErrorInfo_INTERFACE_DEFINED__
EXTERN_C const IID IID_IRestrictedErrorInfo;
typedef struct IRestrictedErrorInfoVtbl
{
BEGIN_INTERFACE
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
__RPC__in IRestrictedErrorInfo * This,
/* [in] */ __RPC__in REFIID riid,
/* [annotation][iid_is][out] */
_COM_Outptr_ void **ppvObject);
DECLSPEC_XFGVIRT(IUnknown, AddRef)
ULONG ( STDMETHODCALLTYPE *AddRef )(
__RPC__in IRestrictedErrorInfo * This);
DECLSPEC_XFGVIRT(IUnknown, Release)
ULONG ( STDMETHODCALLTYPE *Release )(
__RPC__in IRestrictedErrorInfo * This);
DECLSPEC_XFGVIRT(IRestrictedErrorInfo, GetErrorDetails)
HRESULT ( STDMETHODCALLTYPE *GetErrorDetails )(
__RPC__in IRestrictedErrorInfo * This,
/* [out] */ __RPC__deref_out_opt BSTR *description,
/* [out] */ __RPC__out HRESULT *error,
/* [out] */ __RPC__deref_out_opt BSTR *restrictedDescription,
/* [out] */ __RPC__deref_out_opt BSTR *capabilitySid);
DECLSPEC_XFGVIRT(IRestrictedErrorInfo, GetReference)
HRESULT ( STDMETHODCALLTYPE *GetReference )(
__RPC__in IRestrictedErrorInfo * This,
/* [out] */ __RPC__deref_out_opt BSTR *reference);
END_INTERFACE
} IRestrictedErrorInfoVtbl;
interface IRestrictedErrorInfo
{
CONST_VTBL struct IRestrictedErrorInfoVtbl *lpVtbl;
};
#endif